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.Option
to use to specify theExecutor
to use to complete theCompletableFuture
returned from async methods.
-
-
Field Summary
-
Fields inherited from interface com.tangosol.net.AsyncNamedMap.Option
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Complete(Executor executor)
Create aAsyncNamedMap.Complete
option.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Executor
getExecutor()
Return theExecutor
to use to complete theCompletableFuture
returned from async methods.static AsyncNamedMap.Complete
using(Executor executor)
Return aAsyncNamedMap.Complete
option that completes futures using the specifiedExecutor
.static AsyncNamedMap.Complete
usingCommonPool()
Return aAsyncNamedMap.Complete
option that completes futures on the Coherence common thread pool.
-
-
-
Constructor Detail
-
Complete
protected Complete(Executor executor)
Create aAsyncNamedMap.Complete
option.- Parameters:
executor
- theExecutor
to use to complete theCompletableFuture
returned from async methods
-
-
Method Detail
-
getExecutor
public Executor 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
@Default public static AsyncNamedMap.Complete 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
public static AsyncNamedMap.Complete using(Executor executor)
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
-
-