Uses of Interface
org.springframework.retry.RetryContext

Packages that use RetryContext
org.springframework.retry Infrastructure implementations of retry concerns. 
org.springframework.retry.backoff Infrastructure implementations of retry backoff concerns. 
org.springframework.retry.context Infrastructure implementations of retry context concerns. 
org.springframework.retry.listener Infrastructure implementations of retry interceptor concerns. 
org.springframework.retry.policy Infrastructure implementations of retry policy concerns. 
org.springframework.retry.support Infrastructure implementations of retry support concerns. 
 

Uses of RetryContext in org.springframework.retry
 

Methods in org.springframework.retry that return RetryContext
 RetryContext RetryContext.getParent()
          Accessor for the parent context if retry blocks are nested.
 RetryContext RetryPolicy.open(RetryContext parent)
          Acquire resources needed for the retry operation.
 

Methods in org.springframework.retry with parameters of type RetryContext
 boolean RetryPolicy.canRetry(RetryContext context)
           
 void RetryPolicy.close(RetryContext context)
           
<T> void
RetryListener.close(RetryContext context, RetryCallback<T> callback, java.lang.Throwable throwable)
          Called after the final attempt (successful or not).
 T RetryCallback.doWithRetry(RetryContext context)
          Execute an operation with retry semantics.
<T> void
RetryListener.onError(RetryContext context, RetryCallback<T> callback, java.lang.Throwable throwable)
          Called after every unsuccessful attempt at a retry.
 RetryContext RetryPolicy.open(RetryContext parent)
          Acquire resources needed for the retry operation.
<T> boolean
RetryListener.open(RetryContext context, RetryCallback<T> callback)
          Called before the first attempt in a retry.
 T RecoveryCallback.recover(RetryContext context)
           
 void RetryPolicy.registerThrowable(RetryContext context, java.lang.Throwable throwable)
          Called once per retry attempt, after the callback fails.
 

Uses of RetryContext in org.springframework.retry.backoff
 

Methods in org.springframework.retry.backoff with parameters of type RetryContext
 BackOffContext StatelessBackOffPolicy.start(RetryContext status)
          Returns 'null'.
 BackOffContext BackOffPolicy.start(RetryContext context)
          Start a new block of back off operations.
 BackOffContext ExponentialBackOffPolicy.start(RetryContext context)
          Returns a new instance of BackOffContext configured with the 'expSeed' and 'increment' values.
 

Uses of RetryContext in org.springframework.retry.context
 

Classes in org.springframework.retry.context that implement RetryContext
 class RetryContextSupport
           
 

Methods in org.springframework.retry.context that return RetryContext
 RetryContext RetryContextSupport.getParent()
           
 

Constructors in org.springframework.retry.context with parameters of type RetryContext
RetryContextSupport(RetryContext parent)
           
 

Uses of RetryContext in org.springframework.retry.listener
 

Methods in org.springframework.retry.listener with parameters of type RetryContext
<T> void
RetryListenerSupport.close(RetryContext context, RetryCallback<T> callback, java.lang.Throwable throwable)
           
<T> void
RetryListenerSupport.onError(RetryContext context, RetryCallback<T> callback, java.lang.Throwable throwable)
           
<T> boolean
RetryListenerSupport.open(RetryContext context, RetryCallback<T> callback)
           
 

Uses of RetryContext in org.springframework.retry.policy
 

Methods in org.springframework.retry.policy that return RetryContext
 RetryContext SoftReferenceMapRetryContextCache.get(java.lang.Object key)
           
 RetryContext RetryContextCache.get(java.lang.Object key)
           
 RetryContext MapRetryContextCache.get(java.lang.Object key)
           
 RetryContext SimpleRetryPolicy.open(RetryContext parent)
          Get a status object that can be used to track the current operation according to this policy.
 RetryContext NeverRetryPolicy.open(RetryContext parent)
          Return a context that can respond to early termination requests, but does nothing else.
 RetryContext ExceptionClassifierRetryPolicy.open(RetryContext parent)
          Create an active context that proxies a retry policy by chosing a target from the policy map.
 RetryContext TimeoutRetryPolicy.open(RetryContext parent)
           
 RetryContext CompositeRetryPolicy.open(RetryContext parent)
          Creates a new context that copies the existing policies and keeps a list of the contexts from each one.
 

Methods in org.springframework.retry.policy with parameters of type RetryContext
 boolean AlwaysRetryPolicy.canRetry(RetryContext context)
          Always returns true.
 boolean SimpleRetryPolicy.canRetry(RetryContext context)
          Test for retryable operation based on the status.
 boolean NeverRetryPolicy.canRetry(RetryContext context)
          Returns false after the first exception.
 boolean ExceptionClassifierRetryPolicy.canRetry(RetryContext context)
          Delegate to the policy currently activated in the context.
 boolean TimeoutRetryPolicy.canRetry(RetryContext context)
          Only permits a retry if the timeout has not expired.
 boolean CompositeRetryPolicy.canRetry(RetryContext context)
          Delegate to the policies that were in operation when the context was created.
 void SimpleRetryPolicy.close(RetryContext status)
           
 void NeverRetryPolicy.close(RetryContext context)
          Do nothing.
 void ExceptionClassifierRetryPolicy.close(RetryContext context)
          Delegate to the policy currently activated in the context.
 void TimeoutRetryPolicy.close(RetryContext context)
           
 void CompositeRetryPolicy.close(RetryContext context)
          Delegate to the policies that were in operation when the context was created.
 RetryContext SimpleRetryPolicy.open(RetryContext parent)
          Get a status object that can be used to track the current operation according to this policy.
 RetryContext NeverRetryPolicy.open(RetryContext parent)
          Return a context that can respond to early termination requests, but does nothing else.
 RetryContext ExceptionClassifierRetryPolicy.open(RetryContext parent)
          Create an active context that proxies a retry policy by chosing a target from the policy map.
 RetryContext TimeoutRetryPolicy.open(RetryContext parent)
           
 RetryContext CompositeRetryPolicy.open(RetryContext parent)
          Creates a new context that copies the existing policies and keeps a list of the contexts from each one.
 void SoftReferenceMapRetryContextCache.put(java.lang.Object key, RetryContext context)
           
 void RetryContextCache.put(java.lang.Object key, RetryContext context)
           
 void MapRetryContextCache.put(java.lang.Object key, RetryContext context)
           
 void SimpleRetryPolicy.registerThrowable(RetryContext context, java.lang.Throwable throwable)
          Update the status with another attempted retry and the latest exception.
 void NeverRetryPolicy.registerThrowable(RetryContext context, java.lang.Throwable throwable)
          Make the throwable available for downstream use through the context.
 void ExceptionClassifierRetryPolicy.registerThrowable(RetryContext context, java.lang.Throwable throwable)
          Delegate to the policy currently activated in the context.
 void TimeoutRetryPolicy.registerThrowable(RetryContext context, java.lang.Throwable throwable)
           
 void CompositeRetryPolicy.registerThrowable(RetryContext context, java.lang.Throwable throwable)
          Delegate to the policies that were in operation when the context was created.
 

Uses of RetryContext in org.springframework.retry.support
 

Methods in org.springframework.retry.support that return RetryContext
static RetryContext RetrySynchronizationManager.clear()
          Clear the current context at the end of a batch - should only be used by RepeatOperations implementations.
static RetryContext RetrySynchronizationManager.getContext()
          Public accessor for the locally enclosing RetryContext.
protected  RetryContext RetryTemplate.open(RetryPolicy retryPolicy, RetryState state)
          Delegate to the RetryPolicy having checked in the cache for an existing value if the state is not null.
static RetryContext RetrySynchronizationManager.register(RetryContext context)
          Method for registering a context - should only be used by org.springframework.repeat.RepeatOperations implementations to ensure that RetrySynchronizationManager.getContext() always returns the correct value.
 

Methods in org.springframework.retry.support with parameters of type RetryContext
protected  boolean RetryTemplate.canRetry(RetryPolicy retryPolicy, RetryContext context)
          Decide whether to proceed with the ongoing retry attempt.
protected  void RetryTemplate.close(RetryPolicy retryPolicy, RetryContext context, RetryState state, boolean succeeded)
          Clean up the cache if necessary and close the context provided (if the flag indicates that processing was successful).
protected
<T> T
RetryTemplate.handleRetryExhausted(RecoveryCallback<T> recoveryCallback, RetryContext context, RetryState state)
          Actions to take after final attempt has failed.
static RetryContext RetrySynchronizationManager.register(RetryContext context)
          Method for registering a context - should only be used by org.springframework.repeat.RepeatOperations implementations to ensure that RetrySynchronizationManager.getContext() always returns the correct value.
protected  void RetryTemplate.registerThrowable(RetryPolicy retryPolicy, RetryState state, RetryContext context, java.lang.Throwable e)
           
protected  boolean RetryTemplate.shouldRethrow(RetryPolicy retryPolicy, RetryContext context, RetryState state)
          Extension point for subclasses to decide on behaviour after catching an exception in a RetryCallback.
 



Copyright © 2011 SpringSource. All Rights Reserved.