public interface BlockingClientGroupService
The client group service is only available for clients which already have a session available.
When a client connects, the earliest point in time to add the client to a group is the OnSessionReadyCallback.
The client group service is only available when all nodes in the HiveMQ cluster are at version 3.3.0 or above.
| Modifier and Type | Method and Description |
|---|---|
void |
addClientToGroup(String group,
ClientData clientData)
Adds a client to a group.
|
void |
addClientToGroup(String group,
String clientIdentifier)
Adds a client to a group.
|
com.google.common.collect.ImmutableSet<String> |
getAvailableGroups()
Retrieves all available groups.
|
com.google.common.collect.ImmutableSet<String> |
getClientsForGroup(String group)
Retrieves the clients for a group.
|
void |
removeClientFromGroup(String group,
String clientIdentifier)
Removes a client from a group.
|
void addClientToGroup(@NotNull String group, @NotNull ClientData clientData) throws NoSuchClientIdException
group - the group the client will be added to.clientData - the clientData of the client which will be added to the group.NoSuchClientIdException - if no session for the client to the given clientData exists.IncompatibleHiveMQVersionException - if a node with a version lower than 3.3.0 exists in the cluster.RateLimitExceededException - if the plugin service rate limit was exceeded.void addClientToGroup(@NotNull String group, @NotNull String clientIdentifier) throws NoSuchClientIdException
group - the group the client will be added to.clientIdentifier - the identifier of the client which will be added to the group.NoSuchClientIdException - if no session for the client with the given identifier exists.IncompatibleHiveMQVersionException - if a node with a version lower than 3.3.0 exists in the cluster.RateLimitExceededException - if the plugin service rate limit was exceeded.void removeClientFromGroup(@NotNull String group, @NotNull String clientIdentifier)
group - the group the client will be removed from.clientIdentifier - the identifier of the client which will be added to the group.IncompatibleHiveMQVersionException - if a node with a version lower than 3.3.0 exists in the cluster.RateLimitExceededException - if the plugin service rate limit was exceeded.@NotNull com.google.common.collect.ImmutableSet<String> getClientsForGroup(@NotNull String group)
group - the group the clients will be retrieved of.IncompatibleHiveMQVersionException - if a node with a version lower than 3.3.0 exists in the cluster.RateLimitExceededException - if the plugin service rate limit was exceeded.@NotNull com.google.common.collect.ImmutableSet<String> getAvailableGroups()
IncompatibleHiveMQVersionException - if a node with a version lower than 3.3.0 exists in the cluster.RateLimitExceededException - if the plugin service rate limit was exceeded.Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.