static class Constraints.Distilled extends Object
Modifier and Type | Field and Description |
---|---|
private long |
connectDeadline |
private boolean |
hasConnectDeadline |
private boolean |
relativeOK
true if relative time constraints are allowed (in other
words, not for client-side use)
|
private Collection |
unfulfilledPreferences |
private Collection |
unfulfilledRequirements |
Constructor and Description |
---|
Distilled(InvocationConstraints constraints,
boolean relativeOK) |
Modifier and Type | Method and Description |
---|---|
private void |
addAlternatives(ConstraintAlternatives constraint,
boolean isRequirement)
If "isRequirement" is true, throws an
UnsupportedConstraintException if we do not support at
least the transport layer aspects of at least one of the
constraints in the given alternatives.
|
private void |
addConnectDeadline(long deadline)
Adds the given connect deadline to this object's state.
|
private void |
addConstraint(InvocationConstraint constraint,
boolean isRequirement)
If "isRequirement" is true, throws an
UnsupportedConstraintException if we do not support at
least the transport layer aspects of the given constraint.
|
(package private) long |
getConnectDeadline()
Returns the absolute time of the socket connect deadline.
|
(package private) InvocationConstraints |
getUnfulfilledConstraints()
Returns the requirements and supported preferences that
must be at least partially implemented by higher layers.
|
(package private) boolean |
hasConnectDeadline()
Returns true if a there is a socket connect deadline.
|
private final boolean relativeOK
private Collection unfulfilledRequirements
private Collection unfulfilledPreferences
private boolean hasConnectDeadline
private long connectDeadline
Distilled(InvocationConstraints constraints, boolean relativeOK) throws UnsupportedConstraintException
UnsupportedConstraintException
InvocationConstraints getUnfulfilledConstraints()
boolean hasConnectDeadline()
long getConnectDeadline()
private void addConstraint(InvocationConstraint constraint, boolean isRequirement) throws UnsupportedConstraintException
UnsupportedConstraintException
private void addAlternatives(ConstraintAlternatives constraint, boolean isRequirement) throws UnsupportedConstraintException
UnsupportedConstraintException
private void addConnectDeadline(long deadline)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.