Package com.tangosol.net
Class AsyncNamedMap.Complete
- java.lang.Object
-
- com.tangosol.net.AsyncNamedMap.Complete
-
- All Implemented Interfaces:
AsyncNamedMap.Option
- Enclosing interface:
- AsyncNamedMap<K,V>
public static class AsyncNamedMap.Complete extends Object implements AsyncNamedMap.Option
AnAsyncNamedMap.Optionto use to specify theExecutorto use to complete theCompletableFuturereturned from async methods.
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.AsyncNamedMap.Option
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedComplete(Executor executor)Create aAsyncNamedMap.Completeoption.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorgetExecutor()Return theExecutorto use to complete theCompletableFuturereturned from async methods.static AsyncNamedMap.Completeusing(Executor executor)Return aAsyncNamedMap.Completeoption that completes futures using the specifiedExecutor.static AsyncNamedMap.CompleteusingCommonPool()Return aAsyncNamedMap.Completeoption that completes futures on the Coherence common thread pool.
-
-
-
Constructor Detail
-
Complete
protected Complete(Executor executor)
Create aAsyncNamedMap.Completeoption.- Parameters:
executor- theExecutorto use to complete theCompletableFuturereturned from async methods
-
-
Method Detail
-
getExecutor
public Executor getExecutor()
Return theExecutorto use to complete theCompletableFuturereturned from async methods.- Returns:
- the
Executorto use to complete theCompletableFuturereturned from async methods
-
usingCommonPool
@Default public static AsyncNamedMap.Complete usingCommonPool()
Return aAsyncNamedMap.Completeoption that completes futures on the Coherence common thread pool.- Returns:
- a
AsyncNamedMap.Completeoption that completes futures on the Coherence common thread pool
-
using
public static AsyncNamedMap.Complete using(Executor executor)
Return aAsyncNamedMap.Completeoption that completes futures using the specifiedExecutor.- Parameters:
executor- theExecutorto use- Returns:
- a
AsyncNamedMap.Completeoption that completes futures using the specifiedExecutor
-
-