com.hazelcast.monitor
Interface LocalQueueOperationStats

All Superinterfaces:
DataSerializable, LocalInstanceOperationStats, Serializable
All Known Implementing Classes:
LocalQueueOperationStatsImpl

public interface LocalQueueOperationStats
extends LocalInstanceOperationStats

Local Queue Operation Statistics returns number of queue operations in bounded period. The period has start and end times. Given the number of operations in that period, one can calculate the number of operations per second.


Method Summary
 long getNumberOfEmptyPolls()
          Returns number of null returning poll operations.
 long getNumberOfOffers()
          Returns the number of offer/put/add operations.
 long getNumberOfPolls()
          Returns the number of poll/take/remove operations.
 long getNumberOfRejectedOffers()
          Returns the number of rejected offers.
 
Methods inherited from interface com.hazelcast.monitor.LocalInstanceOperationStats
getPeriodEnd, getPeriodStart
 
Methods inherited from interface com.hazelcast.nio.DataSerializable
readData, writeData
 

Method Detail

getNumberOfOffers

long getNumberOfOffers()
Returns the number of offer/put/add operations. Offers returning false will be included. #getNumberOfRejectedOffers can be used to get the rejected offers.

Returns:
number offer/put/add operations

getNumberOfRejectedOffers

long getNumberOfRejectedOffers()
Returns the number of rejected offers. Offer can be rejected because of max-size limit on the queue.

Returns:
number of rejected offers.

getNumberOfPolls

long getNumberOfPolls()
Returns the number of poll/take/remove operations. Polls returning null (empty) will be included. #getNumberOfEmptyPolls can be used to get the number of polls returned null.

Returns:
number of poll/take/remove operations.

getNumberOfEmptyPolls

long getNumberOfEmptyPolls()
Returns number of null returning poll operations. Poll operation might return null, if the queue is empty.

Returns:
number of null returning poll operations.


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.