org.glassfish.virtualization.spi
Interface PhasedFuture<T extends Enum,U>

Type Parameters:
T - the phases definition as an Enum
U - the result type returned by the Future.get()
All Superinterfaces:
Future<U>

public interface PhasedFuture<T extends Enum,U>
extends Future<U>

A phased future is a Future which provides phases completion access.

Author:
Jerome Dochez

Method Summary
 T getCurrentPhase()
          Returns the last completed phase by this future's job.
 
Methods inherited from interface java.util.concurrent.Future
cancel, get, get, isCancelled, isDone
 

Method Detail

getCurrentPhase

T getCurrentPhase()
Returns the last completed phase by this future's job.

Returns:
the last completed phase


Copyright © 2012. All Rights Reserved.