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.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.core.step.item
 

Methods in org.springframework.batch.core.step.item with parameters of type RetryContext
 void SimpleRetryExceptionHandler.close(RetryContext context, RetryCallback callback, Throwable throwable)
           
 

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

Methods in org.springframework.batch.retry.callback with parameters of type RetryContext
 Object ItemWriterRetryCallback.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 RetryContextCache.get(Object key)
           
 RetryContext MapRetryContextCache.get(Object key)
           
 RetryContext TimeoutRetryPolicy.open(RetryCallback callback, RetryContext parent)
           
 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 NeverRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Return a context that can respond to early termination requests, but does nothing else.
 RetryContext ItemWriterRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Create a new context for the execution of the callback, which must be an instance of ItemWriterRetryCallback.
 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 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.
 

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 ItemWriterRetryPolicy.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 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 ItemWriterRetryPolicy.close(RetryContext context)
          Delegates to the delegate context.
 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.
 Object ItemWriterRetryPolicy.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 TimeoutRetryPolicy.open(RetryCallback callback, RetryContext parent)
           
 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 NeverRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Return a context that can respond to early termination requests, but does nothing else.
 RetryContext ItemWriterRetryPolicy.open(RetryCallback callback, RetryContext parent)
          Create a new context for the execution of the callback, which must be an instance of ItemWriterRetryCallback.
 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 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.
 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)
          Do nothing.
 void ItemWriterRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          If ItemWriterRetryPolicy.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 CompositeRetryPolicy.registerThrowable(RetryContext context, Throwable throwable)
          Delegate to the policies that were in operation when the context was created.
 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 © 2008 SpringSource. All Rights Reserved.