Enum Class NotificationCommandType
java.lang.Object
java.lang.Enum<NotificationCommandType>
org.jolokia.server.core.request.notification.NotificationCommandType
- All Implemented Interfaces:
Serializable,Comparable<NotificationCommandType>,java.lang.constant.Constable
Enum specifying the possible notification command types
- Since:
- 19.03.13
- Author:
- roland
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd a new listener for a certain clientList all notifications for a clientOpen a channel which can be used to transmit notificationsPing to update the freshness of a clientRegister a new clientRemove a listener for a certain clientUnregister a client and remove all listeners -
Method Summary
Modifier and TypeMethodDescriptiongetType()Return the name of the typestatic NotificationCommandTypegetTypeByName(String pName) Case insensitive lookup by namestatic NotificationCommandTypeReturns the enum constant of this class with the specified name.static NotificationCommandType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGISTER
Register a new client -
UNREGISTER
Unregister a client and remove all listeners -
ADD
Add a new listener for a certain client -
REMOVE
Remove a listener for a certain client -
PING
Ping to update the freshness of a client -
OPEN
Open a channel which can be used to transmit notifications -
LIST
List all notifications for a client
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getType
Return the name of the type- Returns:
- name of type
-
getTypeByName
Case insensitive lookup by name- Parameters:
pName- name of the command (lower- or upper case)- Returns:
- command looked up
- Throws:
IllegalArgumentException- if the argument is eithernullor does not map to a type.
-