Interface NotifyingFuture<T>

All Superinterfaces:
Future<T>
All Known Implementing Classes:
ExecutionService.DistributedFuture, GroupRequest, MultiRequest, NullFuture, Request, UnicastRequest

public interface NotifyingFuture<T> extends Future<T>
A sub-interface of a Future, that allows for listeners to be attached so that observers can be notified when the future completes.

See FutureListener for more details.

Since:
2.9
Author:
Manik Surtani
  • Method Details

    • setListener

      NotifyingFuture setListener(FutureListener<T> listener)
      Attaches a listener and returns the same future instance, to allow for 'building' futures.
      Parameters:
      listener - listener to attach
      Returns:
      the same future instance