org.jgroups.util.FutureListener Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
package org.jgroups.util;
import java.util.concurrent.Future;
/**
* A listener that is called back when a future is done. FutureListener instances are attached to {@link
* NotifyingFuture}s by passing them in to {@link NotifyingFuture#setListener(FutureListener)}
*
* Note that the {@link #futureDone(Future)} callback is invoked when the future completes, regardless of how the future
* completes (i.e., normally, due to an exception, or cancelled}. As such, implementations should check the future
* passed in by calling future.get().
*
* @author Manik Surtani
* @since 2.9
*/
public interface FutureListener {
void futureDone(Future future);
}