Package org.apache.mina.common.support
Class BaseIoConnectorConfig
java.lang.Object
org.apache.mina.common.support.BaseIoServiceConfig
org.apache.mina.common.support.BaseIoConnectorConfig
- All Implemented Interfaces:
Cloneable
,IoConnectorConfig
,IoServiceConfig
- Direct Known Subclasses:
DatagramConnectorConfig
,SocketConnectorConfig
public abstract class BaseIoConnectorConfig
extends BaseIoServiceConfig
implements IoConnectorConfig
A base implementation of
IoConnectorConfig
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the connect timeout in seconds.long
Returns the connect timeout in milliseconds.void
setConnectTimeout
(int connectTimeout) Sets the connect timeout in seconds.Methods inherited from class org.apache.mina.common.support.BaseIoServiceConfig
clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.mina.common.IoServiceConfig
clone, getFilterChain, getFilterChainBuilder, getSessionConfig, getThreadModel, setFilterChainBuilder, setThreadModel
-
Constructor Details
-
BaseIoConnectorConfig
protected BaseIoConnectorConfig()
-
-
Method Details
-
getConnectTimeout
public int getConnectTimeout()Description copied from interface:IoConnectorConfig
Returns the connect timeout in seconds.- Specified by:
getConnectTimeout
in interfaceIoConnectorConfig
-
getConnectTimeoutMillis
public long getConnectTimeoutMillis()Description copied from interface:IoConnectorConfig
Returns the connect timeout in milliseconds.- Specified by:
getConnectTimeoutMillis
in interfaceIoConnectorConfig
-
setConnectTimeout
public void setConnectTimeout(int connectTimeout) Description copied from interface:IoConnectorConfig
Sets the connect timeout in seconds.- Specified by:
setConnectTimeout
in interfaceIoConnectorConfig
-