1 20 package org.apache.mina.common; 21 22 import java.net.SocketAddress ; 23 24 31 public interface IoSessionRecycler { 32 37 static IoSessionRecycler NOOP = new IoSessionRecycler() { 38 public void put(IoSession session) { 39 } 40 41 public IoSession recycle(SocketAddress localAddress, 42 SocketAddress remoteAddress) { 43 return null; 44 } 45 46 public void remove(IoSession session) { 47 } 48 }; 49 50 56 void put(IoSession session); 57 58 69 IoSession recycle(SocketAddress localAddress, SocketAddress remoteAddress); 70 71 77 void remove(IoSession session); 78 } 79 | Popular Tags |