public class ServiceState extends State
This class represents the state of a transport protocol service.
Modifier and Type | Field and Description |
---|---|
static int |
SERVICE_STARTED
The service has started and can send/recieve messages
|
static int |
SERVICE_STOPPED
The service has stopped and no messages can be sent or received
|
static int |
SERVICE_UNINITIALIZED
The service is unitialized
|
Constructor and Description |
---|
ServiceState()
Constructs the state instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
isValidState(int state)
Evaluates whether the state is valid.
|
breakWaiting, getValue, setValue, waitForState, waitForState, waitForStateUpdate
public static final int SERVICE_UNINITIALIZED
public static final int SERVICE_STARTED
public static final int SERVICE_STOPPED
public boolean isValidState(int state)
Evaluates whether the state is valid.
isValidState
in class State
state
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.