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.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | end(T
the operation result result)Called immediately after the operation completes with no interesting parameters. |
| public void | end(T
the operation result result, long... the operation parameters parameters)Called immediately after the operation completes. |
| begin | back to summary |
|---|---|
| public void begin() Called immediately prior to the operation beginning. | |
| end | back to summary |
|---|---|
| public void end(T result) Called immediately after the operation completes with no interesting parameters.
| |
| end | back to summary |
|---|---|
| public void end(T result, long... parameters) Called immediately after the operation completes.
| |