EmbeddedExtension interface represents a programmatically-defined HiveMQ extension that can be added to an embedded HiveMQ instance.
Package
Interface Declaration
Methods
builder()
Creates a newEmbeddedExtensionBuilder instance.
EmbeddedExtensionBuilder- A new builder instance for creating anEmbeddedExtension
getId()
Returns the unique identifier of the extension.String- The unique ID of the extension
getName()
Returns the human-readable name of the extension.String- The name of the extension
getVersion()
Returns the version of the extension.String- The version of the extension
getAuthor()
Returns the author of the extension.String- The author of the extension, ornullif not provided
getPriority()
Returns the extension’s execution priority.int- The priority value. Extensions are called in order from highest to lowest priority.
- All extensions are called in the order of their priority (highest to lowest).
- Default value:
0
getStartPriority()
Returns the extension’s start priority.int- The start priority value. Extensions are started in order from highest to lowest priority.
- All extensions are started in the order of their start priority (highest to lowest).
- Default value:
1000
getExtensionMain()
Returns the extension’s main class instance.ExtensionMain- The extension main class that implementsextensionStart()andextensionStop()
Usage Examples
Basic Extension
Extension with Priorities
Complete Extension with HiveMQ
Accessing Extension Information
See Also
- EmbeddedExtensionBuilder - Builder for creating extensions
- EmbeddedHiveMQBuilder - Add extensions to HiveMQ
- HiveMQ Extension SDK - Extension development guide