org.apache.mina.common.support

Class BaseIoConnectorConfig

Implemented Interfaces:
Cloneable, IoConnectorConfig, IoServiceConfig
Known Direct Subclasses:
DatagramConnectorConfig, SocketConnectorConfig

public abstract class BaseIoConnectorConfig
extends BaseIoServiceConfig
implements IoConnectorConfig

A base implementation of IoConnectorConfig.

Constructor Summary

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

Object clone, getFilterChain, getFilterChainBuilder, getThreadModel, setFilterChainBuilder, setThreadModel

Constructor Details

BaseIoConnectorConfig

protected BaseIoConnectorConfig()

Method Details

getConnectTimeout

public int getConnectTimeout()
Returns the connect timeout in seconds.
Specified by:
getConnectTimeout in interface IoConnectorConfig

getConnectTimeoutMillis

public long getConnectTimeoutMillis()
Returns the connect timeout in milliseconds.
Specified by:
getConnectTimeoutMillis in interface IoConnectorConfig

setConnectTimeout

public void setConnectTimeout(int connectTimeout)
Sets the connect timeout in seconds.
Specified by:
setConnectTimeout in interface IoConnectorConfig