Class 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 Detail

      • requestedTopologyId

        public final int requestedTopologyId
      • INSTANCE

        public static final OutdatedTopologyException INSTANCE
        A cached instance of OutdatedTopologyException.

        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).