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.
- Version:
- $Id: OverflowConnection.java,v 1.6 2009/09/28 15:08:27 cvsimp Exp $
- 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, isConnected, toString |
Methods inherited from class org.norther.tammi.spray.connector.chain.AbstractConnection |
busy, connected, disposed, getConnectionStatus, getConnectionTime, getConnector, getFilter, getLogger, getMBeanServer, getReadyOps, getRequestTimeout, getTimeout, isContextThread, isKeepConnection, keepConnection, log, recycle, run, setReadyOps, waitUntilDone |
OverflowConnection
public OverflowConnection(MBeanReference<? extends Connector> connector,
MBeanReference<? extends Filter> filter,
MBeanReference<? extends Logger> logger,
MBeanReference<? extends Timeout> 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<? extends Connector> connector,
MBeanReference<? extends Filter> filter,
MBeanReference<? extends Logger> logger,
MBeanReference<? extends Timeout> 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.