Package io.ably.lib.types
Enum Class PresenceMessage.Action
- All Implemented Interfaces:
-
Serializable
,Comparable<PresenceMessage.Action>
,Constable
- Enclosing class:
- PresenceMessage
Describes the possible actions members in the presence set can emit.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA member is not present in the channel.A new member has entered the channel.A member who was present has now left the channel.When subscribing to presence events on a channel that already has members present, this event is emitted for every member already present on the channel before the subscribe listener was registered.An already present member has updated their member data. -
Method Summary
Modifier and TypeMethodDescriptionstatic PresenceMessage.Action
findByValue
(int value) int
getValue()
static PresenceMessage.Action
Returns the enum constant of this class with the specified name.static PresenceMessage.Action[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
absent
A member is not present in the channel.Spec: TP2
-
present
When subscribing to presence events on a channel that already has members present, this event is emitted for every member already present on the channel before the subscribe listener was registered.Spec: TP2
-
enter
A new member has entered the channel.Spec: TP2
-
leave
A member who was present has now left the channel. This may be a result of an explicit request to leave or implicitly when detaching from the channel. Alternatively, if a member's connection is abruptly disconnected and they do not resume their connection within a minute, Ably treats this as a leave event as the client is no longer present.Spec: TP2
-
update
An already present member has updated their member data. Being notified of member data updates can be very useful, for example, it can be used to update the status of a user when they are typing a message.Spec: TP2
-
-
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 name -
NullPointerException
- if the argument is null
-
getValue
public int getValue() -
findByValue
-