Class Services
java.lang.Object
com.hivemq.extension.sdk.api.services.Services
public class Services extends Object
Services provide a convenient way for extensions to interact with the HiveMQ core.
The following services are available:
- Since:
- 4.0.0, CE 2019.1
-
Constructor Summary
Constructors Constructor Description Services() -
Method Summary
Modifier and Type Method Description static @NotNull AdminServiceadminService()static @NotNull ClientServiceclientService()static @NotNull ClusterServiceclusterService()static @NotNull EventRegistryeventRegistry()static @NotNull ManagedExtensionExecutorServiceextensionExecutorService()static @NotNull InitializerRegistryinitializerRegistry()static @NotNull GlobalInterceptorRegistryinterceptorRegistry()static @NotNull MetricRegistrymetricRegistry()static @NotNull PublishServicepublishService()static @NotNull RetainedMessageStoreretainedMessageStore()static @NotNull SecurityRegistrysecurityRegistry()static @NotNull SubscriptionStoresubscriptionStore()
-
Constructor Details
-
Services
public Services()
-
-
Method Details
-
initializerRegistry
- Returns:
- A service to set a
ClientInitializer. - Since:
- 4.0.0, CE 2019.1
-
interceptorRegistry
- Returns:
- A service to set a
GlobalInterceptorRegistry. - Since:
- 4.2.0, CE 2020.1
-
securityRegistry
- Returns:
- A service to register
AuthenticatorProviderandAuthorizerProvider. - Since:
- 4.0.0, CE 2019.1
-
extensionExecutorService
- Returns:
- A service to execute tasks in a HiveMQ managed thread pool.
- Since:
- 4.0.0, CE 2019.1
-
subscriptionStore
- Returns:
- A service to add, get and remove subscriptions.
- Since:
- 4.0.0, CE 2019.1
-
publishService
- Returns:
- A service to publish messages to topics and clients.
- Since:
- 4.0.0, CE 2019.1
-
clusterService
- Returns:
- A service to create a custom cluster discovery.
- Since:
- 4.0.0, CE 2019.1
-
retainedMessageStore
- Returns:
- A service to add, get and remove retained messages.
- Since:
- 4.0.0, CE 2019.1
-
metricRegistry
- Returns:
- A service to get HiveMQ metrics.
- Since:
- 4.0.0, CE 2019.1
-
eventRegistry
- Returns:
- A service to register a
ClientLifecycleEventListenerProvider. - Since:
- 4.0.0, CE 2019.1
-
clientService
- Returns:
- A service to get client session information, disconnect clients and remove sessions.
- Since:
- 4.0.0, CE 2019.1
-
adminService
- Returns:
- A service to get general information about the state of this HiveMQ instance.
- Since:
- 4.2.0, CE 2020.1
-