com.hazelcast.ringbuffer
@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.
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StaleSequenceException(String message, long headSeq)
message
- the messageheadSeq
- the last known head sequence.public long getHeadSeq()
Ringbuffer.readOne(long)
.Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.