org.apache.yoko.orb.OB
Class RetryPolicy_impl
java.lang.Object
org.omg.CORBA.LocalObject
org.apache.yoko.orb.OB.RetryPolicy_impl
- All Implemented Interfaces:
- Serializable, RetryPolicy, RetryPolicyOperations, Object, Policy, PolicyOperations, IDLEntity
public final class RetryPolicy_impl
- extends LocalObject
- implements RetryPolicy
- See Also:
- Serialized Form
Constructor Summary |
RetryPolicy_impl(short mode,
int interval,
int max,
boolean remote)
|
Methods inherited from class org.omg.CORBA.LocalObject |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
RetryPolicy_impl
public RetryPolicy_impl(short mode,
int interval,
int max,
boolean remote)
retry_mode
public short retry_mode()
- Description copied from interface:
RetryPolicyOperations
- For 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
.
- Specified by:
retry_mode
in interface RetryPolicyOperations
retry_interval
public int retry_interval()
- Specified by:
retry_interval
in interface RetryPolicyOperations
retry_max
public int retry_max()
- Specified by:
retry_max
in interface RetryPolicyOperations
retry_remote
public boolean retry_remote()
- Specified by:
retry_remote
in interface RetryPolicyOperations
policy_type
public int policy_type()
- Specified by:
policy_type
in interface PolicyOperations
copy
public Policy copy()
- Specified by:
copy
in interface PolicyOperations
destroy
public void destroy()
- Specified by:
destroy
in interface PolicyOperations
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.