Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.flow.interceptors
Class RetryDecorator

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.flow.interceptors.RetryDecorator
All Implemented Interfaces:
Decorator

public class RetryDecorator
extends Object
implements Decorator

In case of failures repeats every call to a wrapped object method according the provided RetryPolicy.


Constructor Summary
RetryDecorator(RetryPolicy retryPolicy)
           
RetryDecorator(RetryPolicy retryPolicy, WorkflowClock clock)
           
 
Method Summary
<V> V
decorate(Class<?>[] interfaces, V object)
           
<V> V
decorate(Class<V> interfaces, V object)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetryDecorator

public RetryDecorator(RetryPolicy retryPolicy,
                      WorkflowClock clock)

RetryDecorator

public RetryDecorator(RetryPolicy retryPolicy)
Method Detail

decorate

public final <V> V decorate(Class<V> interfaces,
                            V object)
Specified by:
decorate in interface Decorator

decorate

public final <V> V decorate(Class<?>[] interfaces,
                            V object)
Specified by:
decorate in interface Decorator


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.