public class MyIoHandler
extends org.apache.mina.core.service.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(org.apache.mina.core.session.IoSession session,
Throwable cause) |
void |
messageReceived(org.apache.mina.core.session.IoSession session,
Object message) |
void |
sessionClosed(org.apache.mina.core.session.IoSession session) |
void |
sessionCreated(org.apache.mina.core.session.IoSession session) |
void |
sessionOpened(org.apache.mina.core.session.IoSession session) |
public static AtomicInteger received
public static AtomicInteger closed
public MyIoHandler(Object lock)
public void exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause)
exceptionCaught
in interface org.apache.mina.core.service.IoHandler
exceptionCaught
in class org.apache.mina.core.service.IoHandlerAdapter
public void sessionOpened(org.apache.mina.core.session.IoSession session) throws Exception
sessionOpened
in interface org.apache.mina.core.service.IoHandler
sessionOpened
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
public void sessionCreated(org.apache.mina.core.session.IoSession session) throws Exception
sessionCreated
in interface org.apache.mina.core.service.IoHandler
sessionCreated
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
public void sessionClosed(org.apache.mina.core.session.IoSession session) throws Exception
sessionClosed
in interface org.apache.mina.core.service.IoHandler
sessionClosed
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
public void messageReceived(org.apache.mina.core.session.IoSession session, Object message) throws Exception
messageReceived
in interface org.apache.mina.core.service.IoHandler
messageReceived
in class org.apache.mina.core.service.IoHandlerAdapter
Exception
Copyright © 2004–2019 Apache MINA Project. All rights reserved.