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 Details

    • onInboundPublish

      void onInboundPublish(@NotNull @NotNull BridgePublishInboundInput publishInboundInput, @NotNull @NotNull BridgePublishInboundOutput publishInboundOutput)
      When a BridgePublishInboundInterceptor is 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 - The BridgePublishInboundInput parameter.
      publishInboundOutput - The BridgePublishInboundOutput parameter.
      Since:
      Edge 2023.1