Class AsyncFutureListener<V>
- java.lang.Object
-
- org.apache.ignite.internal.util.future.AsyncFutureListener<V>
-
- All Implemented Interfaces:
Serializable,IgniteInClosure<IgniteFuture<V>>
public class AsyncFutureListener<V> extends Object implements IgniteInClosure<IgniteFuture<V>>
Wraps listener and executes it in specified executor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsyncFutureListener(IgniteInClosure<? super IgniteFuture<V>> lsnr, Executor exec)
-
-
-
Constructor Detail
-
AsyncFutureListener
public AsyncFutureListener(IgniteInClosure<? super IgniteFuture<V>> lsnr, Executor exec)
- Parameters:
lsnr- Listener to be called asynchronously.exec- Executor to process listener.
-
-
Method Detail
-
apply
public void apply(IgniteFuture<V> fut)
Closure body.- Specified by:
applyin interfaceIgniteInClosure<V>- Parameters:
fut- Closure argument.
-
-