Interface ProtocolAdapterPublishInboundInterceptor
-
public interface ProtocolAdapterPublishInboundInterceptorInterface for the publish inbound interception.Interceptors are always called by the same Thread for all messages from the same protocol adapter.
If the same instance is shared between multiple protocol adapters it can be called in different Threads and must therefore be thread-safe.
- Since:
- Edge 2023.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonInboundPublish(@NotNull ProtocolAdapterPublishInboundInput publishInboundInput, @NotNull ProtocolAdapterPublishInboundOutput publishInboundOutput)When aProtocolAdapterPublishInboundInterceptoris set through any extension, this method gets called for every inbound PUBLISH packet that originates from any protocol adapter.
-
-
-
Method Detail
-
onInboundPublish
void onInboundPublish(@NotNull @NotNull ProtocolAdapterPublishInboundInput publishInboundInput, @NotNull @NotNull ProtocolAdapterPublishInboundOutput publishInboundOutput)
When aProtocolAdapterPublishInboundInterceptoris set through any extension, this method gets called for every inbound PUBLISH packet that originates from any protocol adapter.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- TheProtocolAdapterPublishInboundInputparameter.publishInboundOutput- TheProtocolAdapterPublishInboundOutputparameter.- Since:
- Edge 2023.1
-
-