Uses of Interface
org.springframework.batch.retry.RetryContext

Packages that use RetryContext
org.springframework.batch.core.step.item Specific implementations of step concerns for item-oriented approach. 
org.springframework.batch.retry Infrastructure implementations of retry concerns. 
org.springframework.batch.retry.backoff Infrastructure implementations of retry backoff concerns. 
org.springframework.batch.retry.context Infrastructure implementations of retry context concerns. 
org.springframework.batch.retry.listener Infrastructure implementations of retry interceptor concerns. 
org.springframework.batch.retry.policy Infrastructure implementations of retry policy concerns. 
org.springframework.batch.retry.support Infrastructure implementations of retry support concerns. 
 

Uses of RetryContext in org.springframework.batch.core.step.item
 

Methods in org.springframework.batch.core.step.item with parameters of type RetryContext
 boolean BatchRetryTemplate.canRetry(RetryContext context)
           
<T> void
SimpleRetryExceptionHandler.close(RetryContext context, RetryCallback<T> callback, Throwable throwable)
          If retry is exhausted set up some state in the context that can be used to signal that the exception should be handled.
 

Uses of RetryContext in org.springframework.batch.retry
 

Methods in org.springframework.batch.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.batch.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, 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, 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, Throwable throwable)
          Called once per retry attempt, after the callback fails.
 

Uses of RetryContext in org.springframework.batch.retry.backoff
 

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

Uses of RetryContext in org.springframework.batch.retry.context
 

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

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

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

Uses of RetryContext in org.springframework.batch.retry.listener
 

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

Uses of RetryContext in org.springframework.batch.retry.policy
 

Methods in org.springframework.batch.retry.policy that return RetryContext
 RetryContext SoftReferenceMapRetryContextCache.get(Object key)
           
 RetryContext RetryContextCache.get(Object key)
           
 RetryContext MapRetryContextCache.get(Object key)
           
 RetryContext TimeoutRetryPolicy.open(RetryContext parent)
           
 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 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.batch.retry.policy with parameters of type RetryContext
 boolean TimeoutRetryPolicy.canRetry(RetryContext context)
          Only permits a retry if the timeout has not expired.
 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 CompositeRetryPolicy.canRetry(RetryContext context)
          Delegate to the policies that were in operation when the context was created.
 boolean AlwaysRetryPolicy.canRetry(RetryContext context)
          Always returns true.
 void TimeoutRetryPolicy.close(RetryContext context)
           
 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 CompositeRetryPolicy.close(RetryContext context)
          Delegate to the policies that were in operation when the context was created.
 RetryContext TimeoutRetryPolicy.open(RetryContext parent)
           
 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 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(Object key, RetryContext context)
           
 void RetryContextCache.put(Object key, RetryContext context)
           
 void MapRetryContextCache.put(Object key, RetryContext context)
           
 void TimeoutRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
           
 void SimpleRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Update the status with another attempted retry and the latest exception.
 void NeverRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Make the throwable available for downstream use through the context.
 void ExceptionClassifierRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Delegate to the policy currently activated in the context.
 void CompositeRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Delegate to the policies that were in operation when the context was created.
 

Uses of RetryContext in org.springframework.batch.retry.support
 

Methods in org.springframework.batch.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 RetryOperations implementations to ensure that RetrySynchronizationManager.getContext() always returns the correct value.
 

Methods in org.springframework.batch.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 RetryOperations implementations to ensure that RetrySynchronizationManager.getContext() always returns the correct value.
protected  void RetryTemplate.registerThrowable(RetryPolicy retryPolicy, RetryState state, RetryContext context, 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 © 2013 SpringSource. All Rights Reserved.