Package org.apache.sshd.common.session
Enum SessionHeartbeatController.HeartbeatType
- java.lang.Object
-
- java.lang.Enum<SessionHeartbeatController.HeartbeatType>
-
- org.apache.sshd.common.session.SessionHeartbeatController.HeartbeatType
-
- All Implemented Interfaces:
Serializable
,Comparable<SessionHeartbeatController.HeartbeatType>
- Enclosing interface:
- SessionHeartbeatController
public static enum SessionHeartbeatController.HeartbeatType extends Enum<SessionHeartbeatController.HeartbeatType>
-
-
Field Summary
Fields Modifier and Type Field Description static Set<SessionHeartbeatController.HeartbeatType>
VALUES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SessionHeartbeatController.HeartbeatType
fromName(String name)
static SessionHeartbeatController.HeartbeatType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SessionHeartbeatController.HeartbeatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final SessionHeartbeatController.HeartbeatType NONE
No heartbeat
-
IGNORE
public static final SessionHeartbeatController.HeartbeatType IGNORE
UseSSH_MSG_IGNORE
packets
-
RESERVED
public static final SessionHeartbeatController.HeartbeatType RESERVED
Custom mechanism viaReservedSessionMessagesHandler
-
-
Field Detail
-
VALUES
public static final Set<SessionHeartbeatController.HeartbeatType> VALUES
-
-
Method Detail
-
values
public static SessionHeartbeatController.HeartbeatType[] 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 (SessionHeartbeatController.HeartbeatType c : SessionHeartbeatController.HeartbeatType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SessionHeartbeatController.HeartbeatType 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 nameNullPointerException
- if the argument is null
-
fromName
public static SessionHeartbeatController.HeartbeatType fromName(String name)
-
-