org.mule.retry
Class PolicyStatus

java.lang.Object
  extended by org.mule.retry.PolicyStatus

public class PolicyStatus
extends Object

Indicates the current state of a RetryPolicy

For example, a RetryPolicy may have a RetryCount - how many times the policy can be invoked. Once the retryCount has been reached, the policy is exhausted and cannot be used again.


Constructor Summary
protected PolicyStatus()
           
protected PolicyStatus(boolean exhausted, Throwable throwable)
           
 
Method Summary
 Throwable getThrowable()
           
 boolean isExhausted()
           
 boolean isOk()
           
static PolicyStatus policyExhausted(Throwable t)
           
static PolicyStatus policyOk()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyStatus

protected PolicyStatus()

PolicyStatus

protected PolicyStatus(boolean exhausted,
                       Throwable throwable)
Method Detail

policyExhausted

public static PolicyStatus policyExhausted(Throwable t)

policyOk

public static PolicyStatus policyOk()

isExhausted

public boolean isExhausted()

isOk

public boolean isOk()

getThrowable

public Throwable getThrowable()


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.