|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Enum type representing the possible operations 'results'public interface OperationObserver<T extends Enum<T>>
Operation observers track the occurrence of processes which take a finite time and can potential terminate in different ways.
Operations must have an associated enum type that represents their possible outcomes. An example of such an enum type would be:
enum PlaneFlight {
LAND, CRASH;
}
Operations also have an associated parameter the use of which is left up to
the implementors of both the producer and consumer of events.
| Method Summary | |
|---|---|
void |
begin()
Called immediately prior to the operation beginning. |
void |
end(T result)
Called immediately after the operation completes with no interesting parameters. |
void |
end(T result,
long... parameters)
Called immediately after the operation completes. |
| Method Detail |
|---|
void begin()
void end(T result)
result - the operation result
void end(T result,
long... parameters)
result - the operation resultparameters - the operation parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||