Class ServiceState

  • All Implemented Interfaces:
    java.io.Serializable

    public class ServiceState
    extends State

    This class represents the state of a transport protocol service.

    Since:
    0.2.0
    Version:
    $Revision: 1.24 $
    Author:
    Lee David Painter
    See Also:
    Serialized Form
    • Field Detail

      • SERVICE_UNINITIALIZED

        public static final int SERVICE_UNINITIALIZED
        The service is unitialized
        See Also:
        Constant Field Values
      • SERVICE_STARTED

        public static final int SERVICE_STARTED
        The service has started and can send/recieve messages
        See Also:
        Constant Field Values
      • SERVICE_STOPPED

        public static final int SERVICE_STOPPED
        The service has stopped and no messages can be sent or received
        See Also:
        Constant Field Values
    • Constructor Detail

      • ServiceState

        public ServiceState()

        Constructs the state instance

    • Method Detail

      • isValidState

        public boolean isValidState​(int state)

        Evaluates whether the state is valid.

        Specified by:
        isValidState in class State
        Parameters:
        state -
        Returns:
        Since:
        0.2.0