Client
, java.io.Serializable
public abstract class LocalClient extends java.lang.Object implements Client
Client.ConnectionType
Modifier and Type | Method | Description |
---|---|---|
AuthenticatedUser |
getAuthenticatedUser() |
Get authenticated user object of this client.
|
java.util.Set<java.lang.String> |
getChannelSubscriptions() |
Get all the channels currently subscribed by this client.
|
abstract void |
registerMessageListener(DeliveredMessageListener listener) |
Register a LocalClientMessageListener to this LocalClient, the listener
will receive messages sent to channels that this LocalClient subscribes to.
|
abstract void |
unregisterMessageListener(DeliveredMessageListener listener) |
Unregister a LocalClientMessageListener to this LocalClient.
|
getId, getPublishedMessageCount
public AuthenticatedUser getAuthenticatedUser()
Client
getAuthenticatedUser
in interface Client
public java.util.Set<java.lang.String> getChannelSubscriptions()
Client
getChannelSubscriptions
in interface Client
public abstract void registerMessageListener(DeliveredMessageListener listener)
listener
- the listener to be registeredpublic abstract void unregisterMessageListener(DeliveredMessageListener listener)
listener
- the listener which has been registered to this LocalClient.