Package org.infinispan.statetransfer
Class OutdatedTopologyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.infinispan.commons.CacheException
-
- org.infinispan.statetransfer.OutdatedTopologyException
-
- All Implemented Interfaces:
Serializable
public class OutdatedTopologyException extends org.infinispan.commons.CacheException
An exception signalling that a command should be retried because it was executed with an outdated topology.This can happen for non-tx caches, if the primary owner doesn't respond (either because it left the cluster or because this particular cache is no longer running).
- Since:
- 6.0
- Author:
- Dan Berindei
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static OutdatedTopologyException
INSTANCE
A cached instance ofOutdatedTopologyException
.int
requestedTopologyId
-
Constructor Summary
Constructors Constructor Description OutdatedTopologyException(int requestedTopologyId)
Request retrying the command in explicitly set topology (or later one).OutdatedTopologyException(String msg)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
requestedTopologyId
public final int requestedTopologyId
-
INSTANCE
public static final OutdatedTopologyException INSTANCE
A cached instance ofOutdatedTopologyException
.This exception has not stack trace information and it should be used internally to notify a topology change while handle a command.
It avoids the cost associated to create and collect the stack when it isn't needed.
-
-
Constructor Detail
-
OutdatedTopologyException
public OutdatedTopologyException(String msg)
-
OutdatedTopologyException
public OutdatedTopologyException(int requestedTopologyId)
Request retrying the command in explicitly set topology (or later one).
-
-