org.norther.tammi.spray.connector.chain
Class OverflowConnection

java.lang.Object
  extended by org.norther.tammi.core.pool.RecyclableSupport
      extended by org.norther.tammi.core.pool.PoolableSupport
          extended by org.norther.tammi.spray.connector.chain.AbstractConnection
              extended by org.norther.tammi.spray.connector.chain.SocketConnection
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.norther.tammi.spray.connector.chain.Connection
Connection.Status
 
Constructor Summary
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.
 
Method Summary
 int getConnectionTimeout()
          Gets the connection timeout of this connection.
 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.
 
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
 
Methods inherited from class org.norther.tammi.core.pool.PoolableSupport
recycled
 
Methods inherited from class org.norther.tammi.core.pool.RecyclableSupport
isDisposed, recycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.core.pool.Recyclable
isDisposed, recycle
 

Constructor Detail

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.
Method Detail

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.