users@tyrus.java.net

MessageHandler is thread safe it?

From: ??? <intelligentcodemail_at_gmail.com>
Date: Sat, 20 Sep 2014 20:39:58 +0800

Can i do this:

session.addMessageHandler(new MessageHandler.Partial<byte[]>() {

        @Override
        public void onMessage(byte[] partialMessage, boolean last) {
            EendpoitProxy.this.message = partialMessage;
            session.sendObject(processHandler());
        }
    });

processHandler(){
// invoke original method
}