@Override public WaitSet createNew(WaitNotifyKey key) { return new WaitSet(logger, nodeEngine, waitSetMap, delayQueue); } };
public void onClientDisconnected(String clientUuid) { operationParker.onClientDisconnected(clientUuid); }
public boolean needsInvalidation() { return isExpired() || isCancelled() || isCallTimedOut(); }
WaitSetEntry(Queue<WaitSetEntry> queue, BlockingOperation blockingOperation) { this.op = (Operation) blockingOperation; this.blockingOperation = blockingOperation; this.queue = queue; this.expirationTimeMs = getExpirationTimeMs(blockingOperation); setPartitionId(op.getPartitionId()); }
public void onPartitionMigrate(MigrationInfo migrationInfo) { operationParker.onPartitionMigrate(migrationInfo); }
@Override public int compareTo(Delayed other) { // compare zero ONLY if same object if (other == this) { return 0; } long d = (getDelay(TimeUnit.NANOSECONDS) - other.getDelay(TimeUnit.NANOSECONDS)); return (d == 0) ? 0 : ((d < 0) ? -1 : 1); }
@Override public void cancelParkedOperations(String serviceName, Object objectId, Throwable cause) { for (WaitSet waitSet : waitSetMap.values()) { waitSet.cancelAll(serviceName, objectId, cause); } }
public int getTotalValidWaitingOperationCount() { int count = 0; for (WaitSet waitSet : waitSetMap.values()) { count += waitSet.totalValidWaitingOperationCount(); } return count; }
@Override public void populate(LiveOperations liveOperations) { for (WaitSet waitSet : waitSetMap.values()) { waitSet.populate(liveOperations); } }
public void reset() { operationParker.reset(); operationService.reset(); }
public boolean needsInvalidation() { return isExpired() || isCancelled() || isCallTimedOut(); }
WaitSetEntry(Queue<WaitSetEntry> queue, BlockingOperation blockingOperation) { this.op = (Operation) blockingOperation; this.blockingOperation = blockingOperation; this.queue = queue; this.expirationTimeMs = getExpirationTimeMs(blockingOperation); setPartitionId(op.getPartitionId()); }
@Override public WaitSet createNew(WaitNotifyKey key) { return new WaitSet(logger, nodeEngine, waitSetMap, delayQueue); } };
public void onClientDisconnected(String clientUuid) { operationParker.onClientDisconnected(clientUuid); }
public void onPartitionMigrate(MigrationInfo migrationInfo) { operationParker.onPartitionMigrate(getThisAddress(), migrationInfo); }
@Override public int compareTo(Delayed other) { // compare zero ONLY if same object if (other == this) { return 0; } long d = (getDelay(TimeUnit.NANOSECONDS) - other.getDelay(TimeUnit.NANOSECONDS)); return (d == 0) ? 0 : ((d < 0) ? -1 : 1); }
@Override public void cancelParkedOperations(String serviceName, Object objectId, Throwable cause) { for (WaitSet waitSet : waitSetMap.values()) { waitSet.cancelAll(serviceName, objectId, cause); } }
public int getTotalValidWaitingOperationCount() { int count = 0; for (WaitSet waitSet : waitSetMap.values()) { count += waitSet.totalValidWaitingOperationCount(); } return count; }
@Override public void populate(LiveOperations liveOperations) { for (WaitSet waitSet : waitSetMap.values()) { waitSet.populate(liveOperations); } }
public void reset() { operationParker.reset(); operationService.reset(); }