|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RetryPolicyOperations
The retry policy. This policy is used to specify retry behavior after
communication failures (i.e., CORBA::TRANSIENT
and
CORBA::COMM_FAILURE
exceptions).
Method Summary | |
---|---|
int |
retry_interval()
|
int |
retry_max()
|
short |
retry_mode()
For retry_mode RETRY_NEVER indicates that requests
should never be retried, and the exception is re-thrown to the
application. |
boolean |
retry_remote()
|
Methods inherited from interface org.omg.CORBA.PolicyOperations |
---|
copy, destroy, policy_type |
Method Detail |
---|
short retry_mode()
RETRY_NEVER
indicates that requests
should never be retried, and the exception is re-thrown to the
application. RETRY_STRICT
will retry once if the
exception completion status is COMPLETED_NO
, in
order to guarantee at-most-once semantics. RETRY_ALWAYS
will retry once, regardless of the exception completion
status. The default value is RETRY_STRICT
.
retry_interval is the time in milliseconds between reties. The
default is 0.
retry_max is the maximum number of retries. The default is 1.
retry_remote determines whether or not to retry on exceptions
received over-the-wire. The default is false: only retry on
locally generated exceptions.
Note: Many TCP/IP stacks do not provide a reliable
indication of communication failure when sending smaller
requests, therefore the failure may not be detected until the
ORB attempts to read the reply. In this case, the ORB must
assume that the remote end has received the request, in order
to guarantee at-most-once semantics for the request. The
implication is that when using the default setting of
RETRY_STRICT
, most communication failures will not
cause a retry. This behavior can be relaxed using
RETRY_ALWAYS
.
int retry_interval()
int retry_max()
boolean retry_remote()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |