@Override public WaveletOperation receive() { if (state == State.CLOSED) { // TODO(anorth): throw an exception here after Wally doesn't do this. logger.error().log("Cannot receive from closed operation channel: " + this); return null; } else { return cc.receive(); } }
/** * Gets the operations from concurrency control. */ public void receiveServerOperations() { WaveletOperation op; while ((op = cc.receive()) != null) { onServerOperation(op); } }
/** * Gets the operations from concurrency control. */ public void receiveServerOperations() { WaveletOperation op; while ((op = cc.receive()) != null) { onServerOperation(op); } }