Class ClosedTransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opendaylight.controller.cluster.access.concepts.RequestException
-
- org.opendaylight.controller.cluster.access.commands.ClosedTransactionException
-
- All Implemented Interfaces:
Serializable
@Beta public final class ClosedTransactionException extends RequestException
ARequestException
indicating that the backend has received a request for a transaction which has already been closed, either via a successful commit or abort (which is indicated viaisSuccessful()
. This can happen if the corresponding journal record is replicated, but the message to the frontend gets lost and the backed leader moved before the frontend retried the corresponding request.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosedTransactionException(boolean successful)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRetriable()
boolean
isSuccessful()
-
Methods inherited from class org.opendaylight.controller.cluster.access.concepts.RequestException
unwrap
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
isRetriable
public boolean isRetriable()
- Specified by:
isRetriable
in classRequestException
-
isSuccessful
public boolean isSuccessful()
-
-