public interface MessageInterceptor
Modifier and Type | Method and Description |
---|---|
boolean |
handle(Message msg,
int key)
Implement this method to intercept message on server side.
|
void |
init(String agentId,
String agentName,
Properties properties)
initialize this interceptor
|
void init(String agentId, String agentName, Properties properties)
agentId
- the string representation of agentIdagentName
- the agent nameproperties
- the properties come from the clientboolean handle(Message msg, int key)
msg
- the messagekey
- the connection key, on destination key=-1Copyright © 2022 ScalAgent D.T.. All rights reserved.