public interface Transport
Modifier and Type | Method and Description |
---|---|
void |
enableSSL(boolean sslEnabled)
Enable or disable SSL
|
org.apache.mina.core.service.IoAcceptor |
getAcceptor() |
String |
getAddress() |
int |
getBackLog() |
int |
getNbThreads() |
int |
getPort()
Gets the port for this service.
|
void |
init()
Initialize the Acceptor if needed
|
boolean |
isSSLEnabled() |
void |
setAddress(String address)
Set the InetAddress for this transport.
|
void |
setBackLog(int backLog)
Set the size of the messages queue waiting for the acceptor to
be ready.
|
void |
setEnableSSL(boolean sslEnabled)
Enable or disable SSL
|
void |
setNbThreads(int nbThreads)
Set the number of processing threads for the acceptor
|
void |
setPort(int port)
Sets the port for this service.
|
void init()
String getAddress()
void setAddress(String address)
address
- The address to setint getPort()
void setPort(int port)
port
- the port for this serviceIllegalArgumentException
- if the port number is not within a valid rangeorg.apache.mina.core.service.IoAcceptor getAcceptor()
int getNbThreads()
void setNbThreads(int nbThreads)
nbThreads
- The number of threads to create in the acceptorint getBackLog()
void setBackLog(int backLog)
backLog
- The queue sizevoid setEnableSSL(boolean sslEnabled)
sslEnabled
- if true
, SSL is enabled.void enableSSL(boolean sslEnabled)
sslEnabled
- if true
, SSL is enabled.boolean isSSLEnabled()
true
if SSL is enabled for this transportCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.