@Override public ICompletableFuture<V> removeAsync(K key) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); return new DelegatingFuture<V>(removeAsyncInternal(key), serializationService); }
@Override public final V get() throws InterruptedException, ExecutionException { return resolve(future.get()); }
@Override public ICompletableFuture<V> removeAsync(K key) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); return new DelegatingFuture<V>(removeAsyncInternal(key), serializationService); }
@Override public V join() { return resolve(future.join()); }
@Override public ICompletableFuture<V> getAsync(K key) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); return new DelegatingFuture<V>(getAsyncInternal(key), serializationService); }
@Override public final V get() throws InterruptedException, ExecutionException { return resolve(future.get()); }
@Override public ICompletableFuture<V> getAsync(K key) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); return new DelegatingFuture<V>(getAsyncInternal(key), serializationService); }
@Override public V join() { return resolve(future.join()); }
@Override public ICompletableFuture submitToKey(K key, EntryProcessor entryProcessor) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); handleHazelcastInstanceAwareParams(entryProcessor); InternalCompletableFuture future = executeOnKeyInternal(key, entryProcessor, null); return new DelegatingFuture(future, serializationService); }
@Override public final V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return resolve(future.get(timeout, unit)); }
@Override public ICompletableFuture submitToKey(K key, EntryProcessor entryProcessor) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); handleHazelcastInstanceAwareParams(entryProcessor); InternalCompletableFuture future = executeOnKeyInternal(key, entryProcessor, null); return new DelegatingFuture(future, serializationService); }
@Override public final V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return resolve(future.get(timeout, unit)); }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) { if (isClusterVersionLessThan(V3_11)) { throw new UnsupportedOperationException("setAsync with Max-Idle operation is available " + "when cluster version is 3.11 or higher"); } checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<Void>( setAsyncInternal(key, valueData, ttl, ttlUnit, maxIdle, maxIdleUnit), serializationService); }
@Override public ICompletableFuture<V> putAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) { if (isClusterVersionLessThan(V3_11)) { throw new UnsupportedOperationException("putAsync with Max-Idle operation is available " + "when cluster version is 3.11 or higher"); } checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<V>( putAsyncInternal(key, valueData, ttl, ttlUnit, maxIdle, maxIdleUnit), serializationService); }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) { if (isClusterVersionLessThan(V3_11)) { throw new UnsupportedOperationException("setAsync with Max-Idle operation is available " + "when cluster version is 3.11 or higher"); } checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<Void>( setAsyncInternal(key, valueData, ttl, ttlUnit, maxIdle, maxIdleUnit), serializationService); }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit timeunit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<Void>( setAsyncInternal(key, valueData, ttl, timeunit, DEFAULT_MAX_IDLE, TimeUnit.MILLISECONDS), serializationService); }
@Override public ICompletableFuture<V> putAsync(K key, V value, long ttl, TimeUnit timeunit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<V>( putAsyncInternal(key, valueData, ttl, timeunit, DEFAULT_MAX_IDLE, TimeUnit.MILLISECONDS), serializationService); }
@Override public ICompletableFuture<V> putAsync(K key, V value, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) { if (isClusterVersionLessThan(V3_11)) { throw new UnsupportedOperationException("putAsync with Max-Idle operation is available " + "when cluster version is 3.11 or higher"); } checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<V>( putAsyncInternal(key, valueData, ttl, ttlUnit, maxIdle, maxIdleUnit), serializationService); }
@Override public ICompletableFuture<V> putAsync(K key, V value, long ttl, TimeUnit timeunit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<V>( putAsyncInternal(key, valueData, ttl, timeunit, DEFAULT_MAX_IDLE, TimeUnit.MILLISECONDS), serializationService); }
@Override public ICompletableFuture<Void> setAsync(K key, V value, long ttl, TimeUnit timeunit) { checkNotNull(key, NULL_KEY_IS_NOT_ALLOWED); checkNotNull(value, NULL_VALUE_IS_NOT_ALLOWED); Data valueData = toData(value); return new DelegatingFuture<Void>( setAsyncInternal(key, valueData, ttl, timeunit, DEFAULT_MAX_IDLE, TimeUnit.MILLISECONDS), serializationService); }