public class FailoverNoopSupport<T,E extends Exception> extends Object implements FailoverSupport<T,E>
FailoverSupport
implementation that does not really provide any failover support
at all. It wraps a FailoverProtectedOperation
but should that operation throw FailoverException
this
support class simply re-raises that exception as an IllegalStateException. This support wrapper should only be
used where the caller can be certain that the failover protected operation cannot acutally throw a failover exception,
for example, because the caller already holds a lock preventing that condition from arising.
Responsibilities | Collaborations |
---|---|
Perform a fail-over protected operation raising providing no handling of fail-over conditions. |
Constructor and Description |
---|
FailoverNoopSupport(FailoverProtectedOperation<T,E> operation,
AMQConnection con)
Creates an automatic retrying fail-over handler for the specified operation.
|
Modifier and Type | Method and Description |
---|---|
T |
execute()
Delegates to another continuation which is to be provided with fail-over handling.
|
public FailoverNoopSupport(FailoverProtectedOperation<T,E> operation, AMQConnection con)
operation
- The fail-over protected operation to wrap in this handler.Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.