public class TcpTransport extends AbstractTransport
acceptor, DEFAULT_BACKLOG_NB, DEFAULT_NB_THREADS, LOCAL_HOST| Constructor and Description |
|---|
TcpTransport()
Creates an instance of the TcpTransport class
|
TcpTransport(int tcpPort)
Creates an instance of the TcpTransport class on localhost
|
TcpTransport(int tcpPort,
int nbThreads)
Creates an instance of the TcpTransport class on localhost
|
TcpTransport(int tcpPort,
int nbThreads,
int backLog)
Creates an instance of the TcpTransport class on localhost
|
TcpTransport(String address,
int tcpPort)
Creates an instance of the TcpTransport class
|
TcpTransport(String address,
int tcpPort,
int nbThreads,
int backLog)
Creates an instance of the TcpTransport class
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.mina.transport.socket.SocketAcceptor |
getAcceptor() |
void |
init()
Initialize the Acceptor if needed
|
String |
toString() |
enableSSL, getAddress, getBackLog, getEnableSSL, getNbThreads, getPort, isSSLEnabled, setAddress, setBackLog, setEnableSSL, setNbThreads, setPortpublic TcpTransport()
public TcpTransport(int tcpPort)
tcpPort - The portpublic TcpTransport(int tcpPort,
int nbThreads)
tcpPort - The portnbThreads - The number of threads to create in the acceptorpublic TcpTransport(String address, int tcpPort)
address - The addresstcpPort - The portpublic TcpTransport(int tcpPort,
int nbThreads,
int backLog)
tcpPort - The portnbThreads - The number of threads to create in the acceptorbackLog - The queue size for incoming messages, waiting for the
acceptor to be readypublic TcpTransport(String address, int tcpPort, int nbThreads, int backLog)
address - The addresstcpPort - The portnbThreads - The number of threads to create in the acceptorbackLog - The queue size for incoming messages, waiting for the
acceptor to be readypublic void init()
init in interface Transportinit in class AbstractTransportpublic org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
AbstractTransportgetAcceptor in interface TransportgetAcceptor in class AbstractTransportpublic String toString()
toString in class AbstractTransportObject.toString()Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.