public UnlockOperation unlock(String key, long casId, OperationCallback cb) { return new UnlockOperationImpl(key, casId, cb); }
@Override public void handleLine(String line) { getLogger().debug("Unlock of %s returned %s", key, line); getCallback().receivedStatus(matchStatus(line, UNLOCKED, NOT_FOUND)); transitionState(OperationState.COMPLETE); }
@Override public void initialize() { ByteBuffer b = ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length + OVERHEAD); setArguments(b, CMD, key, cas); b.flip(); setBuffer(b); }
@Override public void handleLine(String line) { getLogger().debug("Unlock of %s returned %s", key, line); getCallback().receivedStatus(matchStatus(line, UNLOCKED, NOT_FOUND)); transitionState(OperationState.COMPLETE); }
@Override public void initialize() { ByteBuffer b = ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length + OVERHEAD); setArguments(b, CMD, key, cas); b.flip(); setBuffer(b); }
@Override public void handleLine(String line) { getLogger().debug("Unlock of %s returned %s", key, line); getCallback().receivedStatus(matchStatus(line, UNLOCKED, NOT_FOUND)); transitionState(OperationState.COMPLETE); }
@Override public void initialize() { ByteBuffer b = ByteBuffer.allocate(KeyUtil.getKeyBytes(key).length + OVERHEAD); setArguments(b, CMD, key, cas); b.flip(); setBuffer(b); }
public UnlockOperation unlock(String key, long casId, OperationCallback cb) { return new UnlockOperationImpl(key, casId, cb); }
public UnlockOperation unlock(String key, long casId, OperationCallback cb) { return new UnlockOperationImpl(key, casId, cb); }