Interface PubackInboundInterceptor
-
- 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 PubackInboundInterceptor extends Interceptor
Interface for the inbound PUBACK interception.Interceptors are always called by the same Thread for all messages from the same client.
If the same instance is shared between multiple clients it can be called in different Threads and must therefore be thread-safe.
When the method
onInboundPuback(PubackInboundInput, PubackInboundOutput)
throws an exception or a call toPubackInboundOutput.async(Duration)
times out withTimeoutFallback.FAILURE
, HiveMQ will ignore this interceptor and will:- Log the exception
- Revert the changes to the
ModifiablePubackPacket
made by the interceptor - Call the next
PubackInboundInterceptor
or send the PUBACK to the server if no interceptor is left
- Since:
- 4.3.0, CE 2020.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onInboundPuback(@NotNull PubackInboundInput pubackInboundInput, @NotNull PubackInboundOutput pubackInboundOutput)
When aPubackInboundInterceptor
is set through any extension, this method gets called for every inbound PUBACK packet from any MQTT client.
-
-
-
Method Detail
-
onInboundPuback
void onInboundPuback(@NotNull PubackInboundInput pubackInboundInput, @NotNull PubackInboundOutput pubackInboundOutput)
When aPubackInboundInterceptor
is set through any extension, this method gets called for every inbound PUBACK packet from any MQTT client.When the extension is enabled after HiveMQ is already running, this method will also be called for future PUBACKs of clients that are already connected.
- Parameters:
pubackInboundInput
- ThePubackInboundInput
parameter.pubackInboundOutput
- ThePubackInboundOutput
parameter.- Since:
- 4.3.0, CE 2020.1
-
-