public class StorageStatus extends Object
Constructor and Description |
---|
StorageStatus()
No args constructor for use in serialization
|
StorageStatus(Long oldestSequenceNumber,
Long newestSequenceNumber,
Long totalBytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Long |
getNewestSequenceNumber()
The sequence number of the last appended message.
|
Long |
getOldestSequenceNumber()
The sequence number of the first message which is still accessible in the stream.
|
Long |
getTotalBytes()
The current total size of the stream in bytes.
|
int |
hashCode() |
void |
setNewestSequenceNumber(Long newestSequenceNumber)
The sequence number of the last appended message.
|
void |
setOldestSequenceNumber(Long oldestSequenceNumber)
The sequence number of the first message which is still accessible in the stream.
|
void |
setTotalBytes(Long totalBytes)
The current total size of the stream in bytes.
|
String |
toString() |
StorageStatus |
withNewestSequenceNumber(Long newestSequenceNumber) |
StorageStatus |
withOldestSequenceNumber(Long oldestSequenceNumber) |
StorageStatus |
withTotalBytes(Long totalBytes) |
public StorageStatus()
public Long getOldestSequenceNumber()
public void setOldestSequenceNumber(Long oldestSequenceNumber)
public StorageStatus withOldestSequenceNumber(Long oldestSequenceNumber)
public Long getNewestSequenceNumber()
public void setNewestSequenceNumber(Long newestSequenceNumber)
public StorageStatus withNewestSequenceNumber(Long newestSequenceNumber)
public Long getTotalBytes()
public void setTotalBytes(Long totalBytes)
public StorageStatus withTotalBytes(Long totalBytes)