Package org.redisson.executor
Class RedissonCompletionService<V>
-
- org.redisson.executor.RedissonCompletionService<V>
-
- Type Parameters:
V
- value type
- All Implemented Interfaces:
<V>
public class RedissonCompletionService<V> extends implements <V>
A that uses a supplied to execute tasks. This class arranges that submitted tasks are, upon completion, placed on a queue accessible usingtake
. The class is lightweight enough to be suitable for transient use when processing groups of tasks.- Author:
- Nikita Koksharov
-
-
Field Summary
Fields Modifier and Type Field Description protected <RFuture<V>>
completionQueue
protected RScheduledExecutorService
executorService
-
Constructor Summary
Constructors Constructor Description RedissonCompletionService(RScheduledExecutorService executorService)
RedissonCompletionService(RScheduledExecutorService executorService, <RFuture<V>> completionQueue)
-
-
-
Field Detail
-
executorService
protected final RScheduledExecutorService executorService
-
-
Constructor Detail
-
RedissonCompletionService
public RedissonCompletionService(RScheduledExecutorService executorService)
-
RedissonCompletionService
public RedissonCompletionService(RScheduledExecutorService executorService, <RFuture<V>> completionQueue)
-
-