Class RebuildEpochException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.tentackle.common.TentackleRuntimeException
org.tentackle.session.PersistenceException
org.tentackle.persist.trip.RebuildEpochException
All Implemented Interfaces:
Serializable

public class RebuildEpochException extends org.tentackle.session.PersistenceException
Thrown by the receiving TripModificationLogSerializer if the dictionary of an epoch must be rebuilt.

This happens if the receiver was restarted and lacks the entries of the modlogs it processed before, or if it already discarded the dictionary of the epoch. The receiver rebuilds the dictionary via TripModificationLogSerializer.rebuildEpoch(long, Iterable) and retries.

See Also:
  • Constructor Details

    • RebuildEpochException

      public RebuildEpochException(long epoch, String message)
      Creates a rebuild epoch exception.
      Parameters:
      epoch - the epoch to rebuild
      message - the detail message
  • Method Details

    • getEpoch

      public long getEpoch()
      Gets the epoch to rebuild.
      Returns:
      the epoch