Enum ServerSuspendController.Context

    • Method Detail

      • values

        public static ServerSuspendController.Context[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServerSuspendController.Context c : ServerSuspendController.Context.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerSuspendController.Context valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isStarting

        public boolean isStarting()
        Description copied from interface: ServerResumeContext
        Indicates whether the server is resuming as part of the startup sequence.
        Specified by:
        isStarting in interface ServerResumeContext
        Returns:
        true, if the server is starting, false otherwise.
      • isStopping

        public boolean isStopping()
        Description copied from interface: ServerSuspendContext
        Indicates whether the server is suspending as part of the shutdown sequence.
        Specified by:
        isStopping in interface ServerSuspendContext
        Returns:
        true, if the server is stopping, false otherwise.