public static final class HiveMQExtension.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull HiveMQExtension.Builder |
addAdditionalClass(@NotNull java.lang.Class<?> clazz)
Adds an additional class to the .jar file of the
HiveMQExtension. |
@NotNull HiveMQExtension |
build()
Builds the
HiveMQExtension with the provided values or default values. |
@NotNull HiveMQExtension.Builder |
disabledOnStartup(boolean disabledOnStartup)
Flag, that indicates whether the
HiveMQExtension should be disabled when HiveMQ starts. |
@NotNull HiveMQExtension.Builder |
id(@NotNull java.lang.String id)
Sets the identifier of the
HiveMQExtension. |
@NotNull HiveMQExtension.Builder |
mainClass(@NotNull java.lang.Class<?> mainClass)
The main class of the
HiveMQExtension. |
@NotNull HiveMQExtension.Builder |
name(@NotNull java.lang.String name)
Sets the name of the
HiveMQExtension. |
@NotNull HiveMQExtension.Builder |
priority(int priority)
Sets the priority of the
HiveMQExtension. |
@NotNull HiveMQExtension.Builder |
startPriority(int startPriority)
Sets the start-priority of the
HiveMQExtension. |
@NotNull HiveMQExtension.Builder |
version(@NotNull java.lang.String version)
Sets the version of the
HiveMQExtension. |
@NotNull public @NotNull HiveMQExtension build()
HiveMQExtension with the provided values or default values.@NotNull public @NotNull HiveMQExtension.Builder id(@NotNull @NotNull java.lang.String id)
HiveMQExtension.id - the identifier, must not be emptyHiveMQExtension.Builder@NotNull public @NotNull HiveMQExtension.Builder name(@NotNull @NotNull java.lang.String name)
HiveMQExtension.name - the identifier, must not be emptyHiveMQExtension.Builder@NotNull public @NotNull HiveMQExtension.Builder version(@NotNull @NotNull java.lang.String version)
HiveMQExtension.version - the version, must not be emptyHiveMQExtension.Builder@NotNull public @NotNull HiveMQExtension.Builder priority(int priority)
HiveMQExtension.priority - the priorityHiveMQExtension.Builder@NotNull public @NotNull HiveMQExtension.Builder startPriority(int startPriority)
HiveMQExtension.startPriority - the start-priorityHiveMQExtension.Builder@NotNull public @NotNull HiveMQExtension.Builder disabledOnStartup(boolean disabledOnStartup)
HiveMQExtension should be disabled when HiveMQ starts.
Disabling on startup is achieved by placing a DISABLED file in the HiveMQExtension's directory before coping it to the container.disabledOnStartup - if the HiveMQExtension should be disabled when HiveMQ startsHiveMQExtension.Builder@NotNull public @NotNull HiveMQExtension.Builder mainClass(@NotNull @NotNull java.lang.Class<?> mainClass)
HiveMQExtension.
This class MUST implement com.hivemq.extension.sdk.api.ExtensionMain.mainClass - the main classHiveMQExtension.Builderjava.lang.IllegalArgumentException - if the provides class does not implement com.hivemq.extension.sdk.api.ExtensionMain}java.lang.IllegalStateException - if com.hivemq.extension.sdk.api.ExtensionMain is not found in the classpath@NotNull public @NotNull HiveMQExtension.Builder addAdditionalClass(@NotNull @NotNull java.lang.Class<?> clazz)
HiveMQExtension.clazz - the additional classHiveMQExtension.Builder