use of com.hazelcast.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.
the class RemainingCapacityOperation method afterRun.
@Override
public void afterRun() throws Exception {
LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
stats.incrementOtherOperations();
}
use of com.hazelcast.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();
}
}
use of com.hazelcast.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.
the class TxnPeekOperation method afterRun.
@Override
public void afterRun() throws Exception {
if (response != null) {
LocalQueueStatsImpl localQueueStatsImpl = getQueueService().getLocalQueueStatsImpl(name);
localQueueStatsImpl.incrementOtherOperations();
}
}
use of com.hazelcast.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 (response == null) {
queueStats.incrementEmptyPolls();
} else {
queueStats.incrementPolls();
publishEvent(ItemEventType.REMOVED, data);
}
}
use of com.hazelcast.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.
the class DrainOperation method afterRun.
@Override
public void afterRun() throws Exception {
LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
stats.incrementOtherOperations();
for (Data data : dataMap.values()) {
publishEvent(ItemEventType.REMOVED, data);
}
}
Aggregations