public class LocalQueueStatsImpl extends Object implements LocalQueueStats
STAT_NOT_AVAILABLE| Constructor and Description |
|---|
LocalQueueStatsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
long |
getAvgAge()
Returns the average age of the items in this member.
|
long |
getBackupItemCount()
Returns the number of backup items in this member.
|
long |
getCreationTime()
Returns the creation time of this distributed object instance on this member.
|
long |
getEmptyPollOperationCount()
Returns number of null returning poll operations.
|
long |
getEventOperationCount()
Returns number of event operations
|
long |
getMaxAge()
Returns the maximum age of the items in this member.
|
long |
getMinAge()
Returns the minimum age of the items in this member.
|
long |
getOfferOperationCount()
Returns the number of offer/put/add operations.
|
long |
getOtherOperationsCount()
Returns number of other operations
|
long |
getOwnedItemCount()
Returns the number of owned items in this member.
|
long |
getPollOperationCount()
Returns the number of poll/take/remove operations.
|
long |
getRejectedOfferOperationCount()
Returns the number of rejected offers.
|
void |
incrementEmptyPolls() |
void |
incrementOffers() |
void |
incrementOtherOperations() |
void |
incrementPolls() |
void |
incrementReceivedEvents() |
void |
incrementRejectedOffers() |
void |
setAveAge(long aveAge) |
void |
setBackupItemCount(int backupItemCount) |
void |
setMaxAge(long maxAge) |
void |
setMinAge(long minAge) |
void |
setOwnedItemCount(int ownedItemCount) |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
long |
total() |
public long getMinAge()
LocalQueueStatsgetMinAge in interface LocalQueueStatspublic void setMinAge(long minAge)
public long getMaxAge()
LocalQueueStatsgetMaxAge in interface LocalQueueStatspublic void setMaxAge(long maxAge)
public long getAvgAge()
LocalQueueStatsgetAvgAge in interface LocalQueueStatspublic void setAveAge(long aveAge)
public long getOwnedItemCount()
LocalQueueStatsgetOwnedItemCount in interface LocalQueueStatspublic void setOwnedItemCount(int ownedItemCount)
public long getBackupItemCount()
LocalQueueStatsgetBackupItemCount in interface LocalQueueStatspublic void setBackupItemCount(int backupItemCount)
public long getCreationTime()
LocalInstanceStatsgetCreationTime in interface LocalInstanceStatspublic long total()
public long getOfferOperationCount()
LocalQueueStatsgetOfferOperationCount in interface LocalQueueStatspublic long getRejectedOfferOperationCount()
LocalQueueStatsgetRejectedOfferOperationCount in interface LocalQueueStatspublic long getPollOperationCount()
LocalQueueStatsgetPollOperationCount in interface LocalQueueStatspublic long getEmptyPollOperationCount()
LocalQueueStatsgetEmptyPollOperationCount in interface LocalQueueStatspublic long getOtherOperationsCount()
LocalQueueStatsgetOtherOperationsCount in interface LocalQueueStatspublic void incrementOtherOperations()
public void incrementOffers()
public void incrementRejectedOffers()
public void incrementPolls()
public void incrementEmptyPolls()
public void incrementReceivedEvents()
public long getEventOperationCount()
LocalQueueStatsgetEventOperationCount in interface LocalQueueStatspublic JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.