111112113114115116117118
return asyncGetAndSet(newValue).getSafely(); } @Override public InternalCompletableFuture<Long> asyncGetAndSet(long newValue) { Operation operation = new GetAndSetOperation(name, newValue); return asyncInvoke(operation); }
28293031323334
super(name, value); } @Override protected Operation prepareOperation() { return new GetAndSetOperation(name, delta); }
7677787980818283848586
case COMPARE_AND_SET: return new CompareAndSetOperation(); case GET: return new GetOperation(); case GET_AND_SET: return new GetAndSetOperation(); case GET_AND_ALTER: return new GetAndAlterOperation(); case GET_AND_ADD: return new GetAndAddOperation(); case SET_OPERATION:
178179180181182183184185
} @Override public InternalCompletableFuture<E> asyncGetAndSet(E newValue) { NodeEngine nodeEngine = getNodeEngine(); Operation operation = new GetAndSetOperation(name, nodeEngine.toData(newValue)); return asyncInvoke(operation, nodeEngine); }
29303132333435
super(name, update); } @Override protected Operation prepareOperation() { return new GetAndSetOperation(name, update); }
7475767778798081828384
case CONTAINS: return new ContainsOperation(); case GET_AND_ALTER: return new GetAndAlterOperation(); case GET_AND_SET: return new GetAndSetOperation(); case GET: return new GetOperation(); case IS_NULL: return new IsNullOperation(); case SET_AND_GET: