@Beta public class StaleSequenceException extends RuntimeException
RuntimeExceptionthat is thrown when accessing an item in the
Ringbufferusing a sequence that is smaller than the current head sequence. This means that the and old item is read, but it isn't available anymore in the ringbuffer.
|Constructor and Description|
Creates a SequenceOutOfBoundsException with the given message.
|Modifier and Type||Method and Description|
Returns the last known head sequence.
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StaleSequenceException(String message, long headSeq)
message- the message
headSeq- the last known head sequence.
public long getHeadSeq()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.