1 20 package org.apache.mina.transport.socket.nio; 21 22 import java.net.Socket ; 23 24 import org.apache.mina.common.IoSessionConfig; 25 26 32 public interface SocketSessionConfig extends IoSessionConfig { 33 36 boolean isReuseAddress(); 37 38 41 void setReuseAddress(boolean reuseAddress); 42 43 46 int getReceiveBufferSize(); 47 48 51 void setReceiveBufferSize(int receiveBufferSize); 52 53 56 int getSendBufferSize(); 57 58 61 void setSendBufferSize(int sendBufferSize); 62 63 66 int getTrafficClass(); 67 68 71 void setTrafficClass(int trafficClass); 72 73 76 boolean isKeepAlive(); 77 78 81 void setKeepAlive(boolean keepAlive); 82 83 86 boolean isOobInline(); 87 88 91 void setOobInline(boolean oobInline); 92 93 100 int getSoLinger(); 101 102 111 void setSoLinger(int soLinger); 112 113 116 boolean isTcpNoDelay(); 117 118 121 void setTcpNoDelay(boolean tcpNoDelay); 122 } 123 | Popular Tags |