use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.
the class TxnPollOperation method afterRun.
@Override
public void afterRun() throws Exception {
LocalQueueStatsImpl queueStats = getQueueService().getLocalQueueStatsImpl(name);
if (data == null) {
queueStats.incrementEmptyPolls();
} else {
queueStats.incrementPolls();
publishEvent(ItemEventType.REMOVED, data);
}
}
use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.
the class TxnOfferOperation method afterRun.
@Override
public void afterRun() throws Exception {
LocalQueueStatsImpl queueStats = getQueueService().getLocalQueueStatsImpl(name);
if (Boolean.TRUE.equals(response)) {
queueStats.incrementOffers();
publishEvent(ItemEventType.ADDED, data);
} else {
queueStats.incrementRejectedOffers();
}
}
Aggregations