@Beta public class StaleSequenceException extends RuntimeException
RuntimeException that is thrown when accessing an item in the Ringbuffer using 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 | 
|---|
| StaleSequenceException(String message,
                      long headSeq)Creates a SequenceOutOfBoundsException with the given message. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getHeadSeq()Returns the last known head sequence. | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StaleSequenceException(String message, long headSeq)
message - the messageheadSeq - the last known head sequence.public long getHeadSeq()
Ringbuffer.readOne(long).Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.