Package org.objectweb.joram.mom.util
Interface MessageInterceptor
-
public interface MessageInterceptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(Message msg, int key)Implement this method to intercept message on server side.voidinit(String agentId, String agentName, Properties properties)initialize this interceptor
-
-
-
Method Detail
-
init
void init(String agentId, String agentName, Properties properties)
initialize this interceptor- Parameters:
agentId- the string representation of agentIdagentName- the agent nameproperties- the properties come from the client
-
handle
boolean handle(Message msg, int key)
Implement this method to intercept message on server side.- Parameters:
msg- the messagekey- the connection key, on destination key=-1- Returns:
- true if continue with the next interceptor, false send the message in DMQ.
-
-