@ThreadSafe
public final class QueueInfo
extends Object
implements Serializable
Constructor and Description |
---|
QueueInfo() |
Modifier and Type | Method and Description |
---|---|
void |
clearFilesSize()
Clears files size info.
|
void |
clearMessageCount()
Clears message count info.
|
int |
getFileCount()
Gets the file count info.
|
long |
getFilesSize()
Gets files size info.
|
Optional<DateTime> |
getLastReceiverCommit()
Gets the last receiver commit time.
|
Optional<DateTime> |
getLastSenderCommit()
Gets the last sender commit time.
|
long |
getMessageCount()
Gets message count info.
|
long |
getMessagesDropped()
Gets messages dropped info.
|
Optional<DateTime> |
getReceiverConnectTime()
Gets the receiver connect time.
|
int |
getSenderCount()
Gets the sender count.
|
void |
setLastReceiverCommit(DateTime lastReceiverCommit)
Sets the last receiver commit time.
|
void |
setLastSenderCommit(DateTime lastSenderCommit)
Sets the last sender commit time.
|
void |
setReceiverConnectTime(Optional<DateTime> receiverConnecTime)
Sets the receiver connect time.
|
void |
updateFileCount(int delta)
Updates the file count.
|
void |
updateFilesSize(long delta)
Updates the files size.
|
void |
updateMessageCount(long delta)
Updates the message count.
|
void |
updateMessagesDropped(long delta)
Updates the count of messages dropped.
|
void |
updateSenderCount(int delta)
Updates the sender count.
|
public void clearFilesSize()
public void clearMessageCount()
@Nonnegative @CheckReturnValue public int getFileCount()
@Nonnegative @CheckReturnValue public long getFilesSize()
@Nonnull @CheckReturnValue public Optional<DateTime> getLastReceiverCommit()
@Nonnull @CheckReturnValue public Optional<DateTime> getLastSenderCommit()
@Nonnegative @CheckReturnValue public long getMessageCount()
@Nonnegative @CheckReturnValue public long getMessagesDropped()
@Nonnull @CheckReturnValue public Optional<DateTime> getReceiverConnectTime()
@Nonnegative @CheckReturnValue public int getSenderCount()
public void setLastReceiverCommit(@Nonnull DateTime lastReceiverCommit)
lastReceiverCommit
- The last receiver commit time.public void setLastSenderCommit(@Nonnull DateTime lastSenderCommit)
lastSenderCommit
- The last sender commit time.public void setReceiverConnectTime(@Nonnull Optional<DateTime> receiverConnecTime)
receiverConnecTime
- The optional receiver connect time.public void updateFileCount(int delta)
delta
- The count delta.public void updateFilesSize(long delta)
delta
- The size delta.public void updateMessageCount(long delta)
delta
- The count delta.public void updateMessagesDropped(long delta)
delta
- The count delta.public void updateSenderCount(int delta)
delta
- The count delta.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.