Interface BridgePublishInboundInterceptor
public interface BridgePublishInboundInterceptor
Interface for the publish inbound interception.
If the same instance is shared between multiple bridges it can be called in different Threads and must therefore be thread-safe.
- Since:
- Edge 2023.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidonInboundPublish(@NotNull BridgePublishInboundInput publishInboundInput, @NotNull BridgePublishInboundOutput publishInboundOutput) When aBridgePublishInboundInterceptoris set through any extension, this method gets called for every inbound PUBLISH packet that originates from any remote subscription from any MQTT bridge.
-
Method Details
-
onInboundPublish
void onInboundPublish(@NotNull @NotNull BridgePublishInboundInput publishInboundInput, @NotNull @NotNull BridgePublishInboundOutput publishInboundOutput) When aBridgePublishInboundInterceptoris set through any extension, this method gets called for every inbound PUBLISH packet that originates from any remote subscription from any MQTT bridge.When the extension is enabled after HiveMQ is already running, this method will also be called for future PUBLISHes of clients that are already connected.
- Parameters:
publishInboundInput- TheBridgePublishInboundInputparameter.publishInboundOutput- TheBridgePublishInboundOutputparameter.- Since:
- Edge 2023.1
-