public class MyIoHandler extends IoHandlerAdapter
Modifier and Type | Field and Description |
---|---|
static AtomicInteger |
closed |
static AtomicInteger |
received |
Constructor and Description |
---|
MyIoHandler(Object lock) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(IoSession session,
Throwable cause) |
void |
messageReceived(IoSession session,
Object message) |
void |
sessionClosed(IoSession session) |
void |
sessionCreated(IoSession session) |
void |
sessionOpened(IoSession session) |
inputClosed, messageSent, sessionIdle
public static AtomicInteger received
public static AtomicInteger closed
public MyIoHandler(Object lock)
public void exceptionCaught(IoSession session, Throwable cause)
exceptionCaught
in interface IoHandler
exceptionCaught
in class IoHandlerAdapter
public void sessionOpened(IoSession session) throws Exception
sessionOpened
in interface IoHandler
sessionOpened
in class IoHandlerAdapter
Exception
public void sessionCreated(IoSession session) throws Exception
sessionCreated
in interface IoHandler
sessionCreated
in class IoHandlerAdapter
Exception
public void sessionClosed(IoSession session) throws Exception
sessionClosed
in interface IoHandler
sessionClosed
in class IoHandlerAdapter
Exception
public void messageReceived(IoSession session, Object message) throws Exception
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
Exception
Copyright © 2004–2018 Apache MINA Project. All rights reserved.