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>
An
AsyncNamedMap.Option
to use to specify the Executor
to use to
complete the CompletableFuture
returned from async methods.-
Field Summary
Fields inherited from interface com.tangosol.net.AsyncNamedMap.Option
NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn theExecutor
to use to complete theCompletableFuture
returned from async methods.static AsyncNamedMap.Complete
Return aAsyncNamedMap.Complete
option that completes futures using the specifiedExecutor
.static AsyncNamedMap.Complete
Return aAsyncNamedMap.Complete
option that completes futures on the Coherence common thread pool.
-
Constructor Details
-
Complete
Create aAsyncNamedMap.Complete
option.- Parameters:
executor
- theExecutor
to use to complete theCompletableFuture
returned from async methods
-
-
Method Details
-
getExecutor
Return theExecutor
to use to complete theCompletableFuture
returned from async methods.- Returns:
- the
Executor
to use to complete theCompletableFuture
returned from async methods
-
usingCommonPool
Return aAsyncNamedMap.Complete
option that completes futures on the Coherence common thread pool.- Returns:
- a
AsyncNamedMap.Complete
option that completes futures on the Coherence common thread pool
-
using
Return aAsyncNamedMap.Complete
option that completes futures using the specifiedExecutor
.- Parameters:
executor
- theExecutor
to use- Returns:
- a
AsyncNamedMap.Complete
option that completes futures using the specifiedExecutor
-