org.infinispan.util.concurrent
Class BaseNotifyingFuture<T>
java.lang.Object
org.infinispan.util.concurrent.BaseNotifyingFuture<T>
- All Implemented Interfaces:
- Future<T>, NotifyingFuture<T>
- Direct Known Subclasses:
- NotifyingFutureAdaptor, NotifyingFutureImpl
public abstract class BaseNotifyingFuture<T>
- extends Object
- implements NotifyingFuture<T>
- Since:
- 5.2
- Author:
- Mircea Markus
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseNotifyingFuture
public BaseNotifyingFuture()
attachListener
public final NotifyingFuture<T> attachListener(FutureListener<T> objectFutureListener)
- Description copied from interface:
NotifyingFuture
- Attaches a listener and returns the same future instance, to allow for 'building'.
- Specified by:
attachListener
in interface NotifyingFuture<T>
- Parameters:
objectFutureListener
- listener to attach
- Returns:
- the same future instance
notifyDone
public void notifyDone()
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.