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.
|
public FailoverNoopSupport(FailoverProtectedOperation<T,E> operation, AMQConnection con)
operation - The fail-over protected operation to wrap in this handler.Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.