All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bboss.org.jgroups.util.NotifyingFuture Maven / Gradle / Ivy

The newest version!
package bboss.org.jgroups.util;

import java.util.concurrent.Future;


/**
 * A sub-interface of a Future, that allows for listeners to be attached so that observers can be notified when the
 * future completes.
 * 

* See {@link FutureListener} for more details. *

* * @author Manik Surtani * @since 2.9 */ public interface NotifyingFuture extends Future { /** * Attaches a listener and returns the same future instance, to allow for 'building' futures. * * @param listener listener to attach * @return the same future instance */ NotifyingFuture setListener(FutureListener listener); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy