private void process(PartitionSpecificRunnable runnable) { currentRunner = operationRunner(runnable.getPartitionId()); currentRunner.run(runnable); completedPartitionSpecificRunnableCount.inc(); }
private void process(Packet packet) throws Exception { currentRunner = operationRunner(packet.getPartitionId()); currentRunner.run(packet); completedPacketCount.inc(); }
@Override public void run(Operation operation) { checkNotNull(operation, "operation can't be null"); if (!isRunAllowed(operation)) { throw new IllegalThreadStateException("Operation '" + operation + "' cannot be run in current thread: " + Thread.currentThread()); } OperationRunner operationRunner = getOperationRunner(operation); operationRunner.run(operation); }
private void process(Operation operation) { currentRunner = operationRunner(operation.getPartitionId()); currentRunner.run(operation); completedOperationCount.inc(); }
private void process(Packet packet) throws Exception { currentRunner = operationRunner(packet.getPartitionId()); currentRunner.run(packet); completedPacketCount.inc(); }
@Override public void run(Operation operation) { checkNotNull(operation, "operation can't be null"); if (!isRunAllowed(operation)) { throw new IllegalThreadStateException("Operation '" + operation + "' cannot be run in current thread: " + Thread.currentThread()); } OperationRunner operationRunner = getOperationRunner(operation); operationRunner.run(operation); }
private void process(Operation operation) { currentRunner = operationRunner(operation.getPartitionId()); currentRunner.run(operation); completedOperationCount.inc(); }
private void process(PartitionSpecificRunnable runnable) { currentRunner = operationRunner(runnable.getPartitionId()); currentRunner.run(runnable); completedPartitionSpecificRunnableCount.inc(); }