org.apache.qpid.management.configuration
Class QpidDatasource.PooledConnection

java.lang.Object
  extended by org.apache.qpid.transport.ConnectionInvoker
      extended by org.apache.qpid.transport.Connection
          extended by org.apache.qpid.management.configuration.QpidDatasource.PooledConnection
All Implemented Interfaces:
org.apache.qpid.transport.Receiver<org.apache.qpid.transport.ProtocolEvent>, org.apache.qpid.transport.Sender<org.apache.qpid.transport.ProtocolEvent>
Enclosing class:
QpidDatasource

 class QpidDatasource.PooledConnection
extends org.apache.qpid.transport.Connection

A connection decorator used for adding pool interaction behaviour to an existing connection.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.qpid.transport.Connection
org.apache.qpid.transport.Connection.SessionFactory, org.apache.qpid.transport.Connection.State
 
Field Summary
 
Fields inherited from class org.apache.qpid.transport.Connection
log
 
Method Summary
 void close()
          Returns the connection to the pool.
 void exception(Throwable t)
           
(package private)  boolean isValid()
          Returns true if the underlying connection is still valid and can be used.
(package private)  void reallyClose()
           
 
Methods inherited from class org.apache.qpid.transport.Connection
addConnectionListener, close, closed, connect, connect, connect, connect, connect, createSession, createSession, createSession, createSession, createSession, createSession, dispatch, exception, flush, getAuthorizationID, getChannelMax, getClientId, getConnectionDelegate, getConnectionId, getConnectionSettings, getIdleTimeout, getSaslClient, getSecurityLayer, getSender, getServerProperties, getUserID, invoke, mgmtClose, received, resume, send, setAuthorizationID, setClientId, setConnectionDelegate, setIdleTimeout, setSender, setServerProperties, setSessionFactory, setState, setUserID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isValid

boolean isValid()
Returns true if the underlying connection is still valid and can be used.

Returns:
true if the underlying connection is still valid and can be used.

reallyClose

void reallyClose()

close

public void close()
Returns the connection to the pool. That is, marks this connections as available. After that, this connection will be available for further operations.

Specified by:
close in interface org.apache.qpid.transport.Sender<org.apache.qpid.transport.ProtocolEvent>
Overrides:
close in class org.apache.qpid.transport.Connection

exception

public void exception(Throwable t)
Specified by:
exception in interface org.apache.qpid.transport.Receiver<org.apache.qpid.transport.ProtocolEvent>
Overrides:
exception in class org.apache.qpid.transport.Connection


Licensed to the Apache Software Foundation