preProcess
public <M extends Message> M preProcess(M queryPacket)
Called before the given query packet is going to be sent to the server for processing.
Interceptors are free to return a PacketPayload, and if so,
the server will not execute the query, and the given PacketPayload will be
returned to the application instead.
This method will be called while the connection-level mutex is held, so
it will only be called from one thread at a time.
- Type Parameters:
M - Message object
- Parameters:
queryPacket - original Message
- Returns:
- processed
Message