source: events/src/main/java/geniusweb/events/CurrentState.java@ 1

Last change on this file since 1 was 1, checked in by bart, 5 years ago

Initial Release

File size: 1021 bytes
RevLine 
[1]1package geniusweb.events;
2
3/**
4 * Reports a NegoState as the latest state of the protocol. The negoState is
5 * abstract because the state is not something that can be handled at this place
6 * in the dependency hierarchy. The "real" implementations are inside the
7 * protocol.
8 * <p>
9 * When a protocol reports this event, it indicates that this state can be
10 * logged to the loggers for output to the users (publication on the webpages
11 * and reporting to parent protocols eg a tournamentrunner). Usually protocols
12 * are updating this only after a session completes. There may be quite some
13 * overhead triggered by emission of these events, such as rewriting files and
14 * notifying end users behind websockets. Protocols MUST report this at least
15 * once to report the final isFinished() state.
16 * <p>
17 * The logged state may be used to re-start a protocol if it crashes later in an
18 * unfinished state.
19 *
20 */
21public abstract class CurrentState extends ProtocolEvent {
22 // all should implement NegoState getState();
23}
Note: See TracBrowser for help on using the repository browser.