package com.hammurapi.common.concurrent;

import java.util.concurrent.Future;

/**
 * Notifies callable listeners about callable invocation.
 * @author Pavel Vlasov
 *
 * @param <V>
 */
public interface NotifyingFuture<V> extends Future<V> {

	/**
	 * Adds callable listener.
	 * @param listener
	 */
	void addListener(CallableListener<V> listener);
	
	/**
	 * Removes callable listener.
	 * @param listener
	 */
	void removeListener(CallableListener<V> listener);
}
