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()
LocalQueueStats
getMinAge
in interface LocalQueueStats
public void setMinAge(long minAge)
public long getMaxAge()
LocalQueueStats
getMaxAge
in interface LocalQueueStats
public void setMaxAge(long maxAge)
public long getAvgAge()
LocalQueueStats
getAvgAge
in interface LocalQueueStats
public void setAveAge(long aveAge)
public long getOwnedItemCount()
LocalQueueStats
getOwnedItemCount
in interface LocalQueueStats
public void setOwnedItemCount(int ownedItemCount)
public long getBackupItemCount()
LocalQueueStats
getBackupItemCount
in interface LocalQueueStats
public void setBackupItemCount(int backupItemCount)
public long getCreationTime()
LocalInstanceStats
getCreationTime
in interface LocalInstanceStats
public long total()
public long getOfferOperationCount()
LocalQueueStats
getOfferOperationCount
in interface LocalQueueStats
public long getRejectedOfferOperationCount()
LocalQueueStats
getRejectedOfferOperationCount
in interface LocalQueueStats
public long getPollOperationCount()
LocalQueueStats
getPollOperationCount
in interface LocalQueueStats
public long getEmptyPollOperationCount()
LocalQueueStats
getEmptyPollOperationCount
in interface LocalQueueStats
public long getOtherOperationsCount()
LocalQueueStats
getOtherOperationsCount
in interface LocalQueueStats
public void incrementOtherOperations()
public void incrementOffers()
public void incrementRejectedOffers()
public void incrementPolls()
public void incrementEmptyPolls()
public void incrementReceivedEvents()
public long getEventOperationCount()
LocalQueueStats
getEventOperationCount
in interface LocalQueueStats
public JsonObject toJson()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.