1 20 package org.apache.mina.common; 21 22 import java.io.IOException ; 23 24 38 public interface IoHandler { 39 43 void sessionCreated(IoSession session) throws Exception ; 44 45 49 void sessionOpened(IoSession session) throws Exception ; 50 51 55 void sessionClosed(IoSession session) throws Exception ; 56 57 61 void sessionIdle(IoSession session, IdleStatus status) throws Exception ; 62 63 68 void exceptionCaught(IoSession session, Throwable cause) throws Exception ; 69 70 74 void messageReceived(IoSession session, Object message) throws Exception ; 75 76 80 void messageSent(IoSession session, Object message) throws Exception ; 81 } | Popular Tags |