Package com.hivemq.adapter.sdk.api.model
Interface ProtocolAdapterStartOutput
-
public interface ProtocolAdapterStartOutput
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailStart(@NotNull Throwable throwable, @Nullable String errorMessage)Signals HiveMQ Edge that this start attempt failed.voidstartedSuccessfully()Signals HiveMQ Edge that this start attempt was successful.
-
-
-
Method Detail
-
startedSuccessfully
void startedSuccessfully()
Signals HiveMQ Edge that this start attempt was successful. This method may be called asynchronously after the start() method of the adapter has ended.
-
failStart
void failStart(@NotNull @NotNull Throwable throwable, @Nullable @Nullable String errorMessage)
Signals HiveMQ Edge that this start attempt failed. This method may be called asynchronously after the start() method of the adapter has ended.- Parameters:
throwable- a throwable signaling the reason why the start failed.errorMessage- Optional error message to be logged
-
-