@Override public boolean replace(K key, V oldValue, V newValue) { checkNotNull(key, "key can't be null"); checkNotNull(oldValue, "oldValue can't be null"); checkNotNull(newValue, "newValue can't be null"); ClientMessage request = TransactionalMapReplaceIfSameCodec .encodeRequest(name, getTransactionId(), getThreadId(), toData(key), toData(oldValue), toData(newValue)); ClientMessage response = invoke(request); return TransactionalMapReplaceIfSameCodec.decodeResponse(response).response; }
@Override public boolean replace(K key, V oldValue, V newValue) { checkNotNull(key, "key can't be null"); checkNotNull(oldValue, "oldValue can't be null"); checkNotNull(newValue, "newValue can't be null"); ClientMessage request = TransactionalMapReplaceIfSameCodec .encodeRequest(name, getTransactionId(), getThreadId(), toData(key), toData(oldValue), toData(newValue)); ClientMessage response = invoke(request); return TransactionalMapReplaceIfSameCodec.decodeResponse(response).response; }