|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.common.service.CallConfig
Configuration for a service call. Objects of this type specify certain
aspects of how a call is executed. For example, for an HTTP
service caller, a CallConfig object could specify what HTTP
method (GET, POST, etc.) to use.
This base class only specifies the property failOverAllowed, which indicates whether fail-over is unconditionally allowed, even if the request was already received or even processed by the other end.
This class is thread-safe, and subclasses must be thread-safe
as well. When reading or writing a field, the code should synchronize on
the lock object returned by getLock(). For example, the
failOverAllowed getter and setter methods in this class could be
implemented as follows:
public final boolean isFailOverAllowed() {
synchronized (getLock()) {
return _failOverAllowed;
}
}
public final void setFailOverAllowed(boolean allowed) {
synchronized (getLock()) {
_failOverAllowed = allowed;
}
}
ServiceCaller,
CallRequest,
Serialized Form| Constructor Summary | |
CallConfig()
Constructs a new CallConfig object. |
|
| Method Summary | |
String |
describe()
Describes this configuration. |
protected Object |
getLock()
Returns the access controller for the fields in this object. |
boolean |
isFailOverAllowed()
Determines whether fail-over is unconditionally allowed. |
void |
setFailOverAllowed(boolean allowed)
Configures whether fail-over is unconditionally allowed. |
String |
toString()
Returns a textual presentation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CallConfig()
CallConfig object.
| Method Detail |
protected final Object getLock()
null.public String describe()
"HTTP call config #1592 [failOverAllowed=true,
method=\"POST\"]" and "HTTP call config #12
[failOverAllowed=false, method=(null)]"
The implementation of this method in class CallConfig returns
a descriptive string that contains an instance number and the
failOverAllowed setting.
null, should never be empty and should never start or
end with whitespace characters.public final String toString()
The implementation of this method in class CallRequest
returns describe().
null.public final boolean isFailOverAllowed()
true if fail-over is unconditionally allowed, even if
the request was already received or even processed by the other end,
false otherwise.public final void setFailOverAllowed(boolean allowed)
allowed - true if fail-over is unconditionally allowed, even if
the request was already received or even processed by the other end,
false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||