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

com.stanfy.enroscar.goro.ObservableFuture Maven / Gradle / Ivy

There is a newer version: 3.0.0-RC5
Show newest version
package com.stanfy.enroscar.goro;

import java.util.concurrent.Executor;
import java.util.concurrent.Future;

/**
 * Extends {@link java.util.concurrent.Future} interface with methods that allow adding listeners
 * to task execution results.
 *
 * @param  task execution result type
 *
 * @author Roman Mazur - Stanfy (http://stanfy.com)
 */
public interface ObservableFuture extends Future {

  void subscribe(Executor executor, FutureObserver observer);

  void subscribe(FutureObserver observer);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy