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

Packages that use RetryContext
org.springframework.batch.retry Infrastructure implementations of retry concerns. 
org.springframework.batch.retry.backoff Infrastructure implementations of retry backoff concerns. 
org.springframework.batch.retry.callback Infrastructure implementations of retry callback 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.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(RetryCallback callback, 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)
           
 void RetryListener.close(RetryContext context, RetryCallback callback, Throwable throwable)
          Called after the final attempt (successful or not).
 Object RetryCallback.doWithRetry(RetryContext context)
          Execute an operation with retry semantics.
 Object RetryPolicy.handleRetryExhausted(RetryContext context)
          Handle an exhausted retry.
 void RetryListener.onError(RetryContext context, RetryCallback callback, Throwable throwable)
          Called after every unsuccessful attempt at a retry.
 RetryContext RetryPolicy.open(RetryCallback callback, RetryContext parent)
          Acquire resources needed for the retry operation.
 boolean RetryListener.open(RetryContext context, RetryCallback callback)
          Called before the first attempt in a retry.
 Object RecoveryCallback.recover(RetryContext context)
           
 void RetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Called once per retry attempt, after the callback fails.
 boolean RetryPolicy.shouldRethrow(RetryContext context)
           
 

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

Methods in org.springframework.batch.retry.backoff with parameters of type RetryContext
 BackOffContext BackOffPolicy.start(RetryContext context)
          Start a new block of back off operations.
 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.
 

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

Methods in org.springframework.batch.retry.callback with parameters of type RetryContext
 Object RecoveryRetryCallback.doWithRetry(RetryContext context)
           
 

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
 void RetryListenerSupport.close(RetryContext context, RetryCallback callback, Throwable throwable)
           
 void RetryListenerSupport.onError(RetryContext context, RetryCallback callback, Throwable throwable)
           
 boolean RetryListenerSupport.open(RetryContext context, RetryCallback callback)
           
 

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

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

Methods in org.springframework.batch.retry.policy with parameters of type RetryContext
 boolean RecoveryCallbackRetryPolicy.canRetry(RetryContext context)
          Check the history of this item, and if it has reached the retry limit, then return false.
 boolean ExceptionClassifierRetryPolicy.canRetry(RetryContext context)
          Delegate to the policy currently activated in the context.
 boolean NeverRetryPolicy.canRetry(RetryContext context)
          Returns false after the first exception.
 boolean CompositeRetryPolicy.canRetry(RetryContext context)
          Delegate to the policies that were in operation when the context was created.
 boolean SimpleRetryPolicy.canRetry(RetryContext context)
          Test for retryable operation based on the status.
 boolean TimeoutRetryPolicy.canRetry(RetryContext context)
          Only permits a retry if the timeout has not expired.
 boolean AlwaysRetryPolicy.canRetry(RetryContext context)
          Always returns true.
 void RecoveryCallbackRetryPolicy.close(RetryContext context)
          Delegates to the delegate context.
 void ExceptionClassifierRetryPolicy.close(RetryContext context)
          Delegate to the policy currently activated in the context.
 void NeverRetryPolicy.close(RetryContext context)
          Do nothing.
 void CompositeRetryPolicy.close(RetryContext context)
          Delegate to the policies that were in operation when the context was created.
 void SimpleRetryPolicy.close(RetryContext status)
           
 void TimeoutRetryPolicy.close(RetryContext context)
           
 Object RecoveryCallbackRetryPolicy.handleRetryExhausted(RetryContext context)
          Call recovery path (if any) and clean up context history.
 Object AbstractStatelessRetryPolicy.handleRetryExhausted(RetryContext context)
          Throw an exception.
 Object AbstractStatefulRetryPolicy.handleRetryExhausted(RetryContext context)
          Return null.
 RetryContext RecoveryCallbackRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Create a new context for the execution of the callback, which must be an instance of RecoveryRetryCallback.
 RetryContext ExceptionClassifierRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Create an active context that proxies a retry policy by chosing a target from the policy map.
 RetryContext NeverRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Return a context that can respond to early termination requests, but does nothing else.
 RetryContext CompositeRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Creates a new context that copies the existing policies and keeps a list of the contexts from each one.
 RetryContext SimpleRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Get a status object that can be used to track the current operation according to this policy.
 RetryContext TimeoutRetryPolicy.open(RetryCallback callback, RetryContext parent)
           
 void MapRetryContextCache.put(Object key, RetryContext context)
           
 void RetryContextCache.put(Object key, RetryContext context)
           
 void RecoveryCallbackRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          If RecoveryCallbackRetryPolicy.canRetry(RetryContext) is false then take remedial action (if implemented by subclasses), and remove the current item from the history.
 void ExceptionClassifierRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Delegate to the policy currently activated in the context.
 void NeverRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Do nothing.
 void CompositeRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Delegate to the policies that were in operation when the context was created.
 void SimpleRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Update the status with another attempted retry and the latest exception.
 void TimeoutRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
           
 boolean AbstractStatelessRetryPolicy.shouldRethrow(RetryContext context)
          Just returns the negative of RetryPolicy.canRetry(RetryContext), i.e.
 boolean AbstractStatefulRetryPolicy.shouldRethrow(RetryContext context)
          For a stateful policy the default is to always rethrow.
 

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.
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
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.
 



Copyright © 2009 SpringSource. All Rights Reserved.