org.norther.tammi.spray.connector.chain
Class OverflowConnection
java.lang.Object
org.norther.tammi.core.pool.RecyclableSupport
org.norther.tammi.core.pool.PoolableSupport
org.norther.tammi.spray.connector.chain.AbstractConnection
org.norther.tammi.spray.connector.chain.SocketConnection
org.norther.tammi.spray.connector.chain.OverflowConnection
- All Implemented Interfaces:
- Closeable, Serializable, Runnable, Poolable, Recyclable, Connection
public class OverflowConnection
- extends SocketConnection
A connection through a socket without a connection timeout.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
| Methods inherited from class org.norther.tammi.spray.connector.chain.SocketConnection |
close, dispose, filter, getByteCount, getPeerCertificates, getRemoteAddr, getRemotePort, getRequest, getResponse, getSocket, toString |
| Methods inherited from class org.norther.tammi.spray.connector.chain.AbstractConnection |
connected, disposed, getConnectionStatus, getConnectionTime, getConnector, getFilter, getLogger, getMBeanServer, getReadyOps, getRequestTimeout, getTimeout, isContextThread, isKeepConnection, keepConnection, log, recycle, run, setReadyOps, waitUntilDone |
OverflowConnection
public OverflowConnection(MBeanReference connector,
MBeanReference filter,
MBeanReference logger,
MBeanReference timeout,
Thread thread,
Socket socket)
- Constructs a new connection.
- Parameters:
connector - the socket connector.filter - the active filter.logger - the active logger.timeout - the active timeout.thread - the connector thread.socket - the socket.
recycle
public void recycle(MBeanReference connector,
MBeanReference filter,
MBeanReference logger,
MBeanReference timeout,
Thread thread,
Socket socket)
- Recycles an existing connection.
- Overrides:
recycle in class SocketConnection
- Parameters:
connector - the socket connector.filter - the active filter.logger - the active logger.timeout - the active timeout.thread - the connector thread.socket - the socket.
getConnectionTimeout
public int getConnectionTimeout()
- Description copied from interface:
Connection
- Gets the connection timeout of this connection.
- Specified by:
getConnectionTimeout in interface Connection- Overrides:
getConnectionTimeout in class AbstractConnection
- Returns:
- the connection timeout in msecs.
Copyright © 2004 The Norther Organization. All rights reserved.