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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonOutboundPublish(@NotNull BridgePublishOutboundInput publishOutboundInput, @NotNull BridgePublishOutboundOutput publishOutboundOutput)When aBridgePublishOutboundInterceptoris set through any extension, this method gets called for every outbound PUBLISH packet that originates from any forwarded topic from any MQTT bridge.
-
-
-
Method Detail
-
onOutboundPublish
void onOutboundPublish(@NotNull @NotNull BridgePublishOutboundInput publishOutboundInput, @NotNull @NotNull BridgePublishOutboundOutput publishOutboundOutput)
When aBridgePublishOutboundInterceptoris 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- TheBridgePublishOutboundInputparameter.publishOutboundOutput- TheBridgePublishOutboundOutputparameter.- Since:
- Edge 2023.1
-
-