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