Interface BridgePublishOutboundInterceptor

All Superinterfaces:
Interceptor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BridgePublishOutboundInterceptor extends Interceptor
Interface for the publish outbound interception.

Interceptors are always called by the same thread for all messages for the same client.

If the same instance is shared between multiple clients it can be called by different threads and must therefore be thread-safe.

Since:
1.0.0
  • Method Details

    • onOutboundPublish

      void onOutboundPublish(@NotNull @NotNull BridgePublishOutboundInput publishOutboundInput, @NotNull @NotNull BridgePublishOutboundOutput publishOutboundOutput)
      When a BridgePublishOutboundInterceptor is set through any extension, this method gets called for every outbound PUBLISH packet that originates from any forwarded topic 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:
      publishOutboundInput - The BridgePublishOutboundInput parameter.
      publishOutboundOutput - The BridgePublishOutboundOutput parameter.
      Since:
      Edge 2023.1