org.apache.yoko.orb.OB
Interface RetryPolicyOperations

All Superinterfaces:
PolicyOperations
All Known Subinterfaces:
RetryPolicy
All Known Implementing Classes:
RetryPolicy_impl

public interface RetryPolicyOperations
extends PolicyOperations

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

retry_mode

short retry_mode()
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.


retry_interval

int retry_interval()

retry_max

int retry_max()

retry_remote

boolean retry_remote()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.