1 20 package org.apache.mina.common; 21 22 import java.net.SocketAddress ; 23 import java.util.Set ; 24 25 32 public interface IoService { 33 37 void addListener(IoServiceListener listener); 38 39 43 void removeListener(IoServiceListener listener); 44 45 51 Set <SocketAddress > getManagedServiceAddresses(); 52 53 58 boolean isManaged(SocketAddress serviceAddress); 59 60 73 Set <IoSession> getManagedSessions(SocketAddress serviceAddress); 74 75 79 IoServiceConfig getDefaultConfig(); 80 81 87 IoFilterChainBuilder getFilterChainBuilder(); 88 89 96 void setFilterChainBuilder(IoFilterChainBuilder builder); 97 98 108 DefaultIoFilterChainBuilder getFilterChain(); 109 } 110 | Popular Tags |