Package org.testcontainers.hivemq
Class HiveMQExtension.Builder
java.lang.Object
org.testcontainers.hivemq.HiveMQExtension.Builder
- Enclosing class:
- HiveMQExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull HiveMQExtension.BuilderaddAdditionalClass(@NotNull Class<?> clazz) Adds an additional class to the .jar file of theHiveMQExtension.@NotNull HiveMQExtensionbuild()Builds theHiveMQExtensionwith the provided values or default values.@NotNull HiveMQExtension.BuilderdisabledOnStartup(boolean disabledOnStartup) Flag, that indicates whether theHiveMQExtensionshould be disabled when HiveMQ starts.@NotNull HiveMQExtension.BuilderSets the identifier of theHiveMQExtension.@NotNull HiveMQExtension.BuilderThe main class of theHiveMQExtension.@NotNull HiveMQExtension.BuilderSets the name of theHiveMQExtension.@NotNull HiveMQExtension.Builderpriority(int priority) Sets the priority of theHiveMQExtension.@NotNull HiveMQExtension.BuilderstartPriority(int startPriority) Sets the start-priority of theHiveMQExtension.@NotNull HiveMQExtension.BuilderSets the version of theHiveMQExtension.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds theHiveMQExtensionwith the provided values or default values.- Returns:
- the HiveMQ Extension
-
id
Sets the identifier of theHiveMQExtension.- Parameters:
id- the identifier, must not be empty- Returns:
- the
HiveMQExtension.Builder
-
name
Sets the name of theHiveMQExtension.- Parameters:
name- the identifier, must not be empty- Returns:
- the
HiveMQExtension.Builder
-
version
Sets the version of theHiveMQExtension.- Parameters:
version- the version, must not be empty- Returns:
- the
HiveMQExtension.Builder
-
priority
Sets the priority of theHiveMQExtension.- Parameters:
priority- the priority- Returns:
- the
HiveMQExtension.Builder
-
startPriority
Sets the start-priority of theHiveMQExtension.- Parameters:
startPriority- the start-priority- Returns:
- the
HiveMQExtension.Builder
-
disabledOnStartup
Flag, that indicates whether theHiveMQExtensionshould be disabled when HiveMQ starts. Disabling on startup is achieved by placing a DISABLED file in theHiveMQExtension's directory before coping it to the container.- Parameters:
disabledOnStartup- if theHiveMQExtensionshould be disabled when HiveMQ starts- Returns:
- the
HiveMQExtension.Builder
-
mainClass
The main class of theHiveMQExtension. This class MUST implement com.hivemq.extension.sdk.api.ExtensionMain.- Parameters:
mainClass- the main class- Returns:
- the
HiveMQExtension.Builder - Throws:
IllegalArgumentException- if the provides class does not implement com.hivemq.extension.sdk.api.ExtensionMain}IllegalStateException- if com.hivemq.extension.sdk.api.ExtensionMain is not found in the classpath
-
addAdditionalClass
@NotNull public @NotNull HiveMQExtension.Builder addAdditionalClass(@NotNull @NotNull Class<?> clazz) Adds an additional class to the .jar file of theHiveMQExtension.- Parameters:
clazz- the additional class- Returns:
- the
HiveMQExtension.Builder
-