com.hammurapi.util.concurrent
Interface NotifyingFuture<V>

Type Parameters:
V -
All Superinterfaces:
Future<V>
All Known Implementing Classes:
NonBlockingNotifyingFutureTask

public interface NotifyingFuture<V>
extends Future<V>

Notifies callable listeners about callable invocation.

Author:
Pavel Vlasov

Method Summary
 void addListener(CallableListener<V> listener)
          Adds callable listener.
 void removeListener(CallableListener<V> listener)
          Removes callable listener.
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

addListener

void addListener(CallableListener<V> listener)
Adds callable listener.

Parameters:
listener -

removeListener

void removeListener(CallableListener<V> listener)
Removes callable listener.

Parameters:
listener -