Interface ClusterDiscoveryOutput
-
@DoNotImplement public interface ClusterDiscoveryOutput
Output for the methods of aClusterDiscoveryCallback
that provide the current addresses of all HiveMQ cluster nodes.- Since:
- 4.0.0, CE 2019.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
provideCurrentNodes(@NotNull List<@NotNull ClusterNodeAddress> nodeAddresses)
Provides the current addresses of all HiveMQ cluster nodes.void
setReloadInterval(int reloadInterval)
Overwrites the current reload interval for updating the addresses of all HiveMQ cluster nodes.
-
-
-
Method Detail
-
provideCurrentNodes
void provideCurrentNodes(@NotNull List<@NotNull ClusterNodeAddress> nodeAddresses)
Provides the current addresses of all HiveMQ cluster nodes.- Parameters:
nodeAddresses
- The current addresses of all HiveMQ cluster nodes.- Throws:
NullPointerException
- If node addresses is null or one of the elements is null.- Since:
- 4.0.0, CE 2019.1
-
setReloadInterval
void setReloadInterval(int reloadInterval)
Overwrites the current reload interval for updating the addresses of all HiveMQ cluster nodes.The reload interval is in seconds and must be at least 1.
- Parameters:
reloadInterval
- The reload interval in seconds.- Throws:
IllegalArgumentException
- If the reload interval is less than one.- Since:
- 4.0.0, CE 2019.1
-
-