org.apache.mina.common.support
Class BaseIoConnectorConfig

java.lang.Object
  extended by org.apache.mina.common.support.BaseIoServiceConfig
      extended by org.apache.mina.common.support.BaseIoConnectorConfig
All Implemented Interfaces:
java.lang.Cloneable, IoConnectorConfig, IoServiceConfig
Direct Known Subclasses:
DatagramConnectorConfig, SocketConnectorConfig

public abstract class BaseIoConnectorConfig
extends BaseIoServiceConfig
implements IoConnectorConfig

A base implementation of IoConnectorConfig.


Constructor Summary
protected BaseIoConnectorConfig()
           
 
Method Summary
 int getConnectTimeout()
          Returns the connect timeout in seconds.
 long getConnectTimeoutMillis()
          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 Detail

BaseIoConnectorConfig

protected BaseIoConnectorConfig()
Method Detail

getConnectTimeout

public int getConnectTimeout()
Description copied from interface: IoConnectorConfig
Returns the connect timeout in seconds.

Specified by:
getConnectTimeout in interface IoConnectorConfig

getConnectTimeoutMillis

public long getConnectTimeoutMillis()
Description copied from interface: IoConnectorConfig
Returns the connect timeout in milliseconds.

Specified by:
getConnectTimeoutMillis in interface IoConnectorConfig

setConnectTimeout

public void setConnectTimeout(int connectTimeout)
Description copied from interface: IoConnectorConfig
Sets the connect timeout in seconds.

Specified by:
setConnectTimeout in interface IoConnectorConfig