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, setPort
public 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 addressport
- 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 Transport
init
in class AbstractTransport
public org.apache.mina.transport.socket.SocketAcceptor getAcceptor()
AbstractTransport
getAcceptor
in interface Transport
getAcceptor
in class AbstractTransport
public String toString()
toString
in class AbstractTransport
Object.toString()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.