public interface Interceptor
To add an interceptor to HornetQ server, you have to modify the server configuration file
hornetq-configuration.xml.
To add it to a client, use ServerLocator#addIncomingInterceptor(Interceptor)
| Modifier and Type | Method and Description |
|---|---|
boolean |
intercept(Packet packet,
RemotingConnection connection)
Intercepts a packet which is received before it is sent to the channel
|
boolean intercept(Packet packet, RemotingConnection connection) throws HornetQException
packet - the packet being receivedconnection - the connection the packet was received ontrue to process the next interceptor and handle the packet,
false to abort processing of the packetHornetQExceptionCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.