org.datanucleus
Interface ManagedConnectionResourceListener


public interface ManagedConnectionResourceListener

Listener for the relation between a ManagedConnection and a resource using that ManagedConnection. The resource often needs to know when the ManagedConnection is going to be closed. Similarly the ManagedConnection may need to know when the resource is being closed (so it can free up resources).


Method Summary
 void managedConnectionFlushed()
          On flush.
 void managedConnectionPostClose()
          Method invoked when the managed connection has just been closed.
 void managedConnectionPreClose()
          Method invoked when the managed connection is about to be closed.
 void resourcePostClose()
          Method invoked when the resource has been closed.
 

Method Detail

managedConnectionFlushed

void managedConnectionFlushed()
On flush. it can be invoked multiple times during the lifecycle of the ManagedConnection


managedConnectionPreClose

void managedConnectionPreClose()
Method invoked when the managed connection is about to be closed. Allows the resource to finish its use of the managed connection.


managedConnectionPostClose

void managedConnectionPostClose()
Method invoked when the managed connection has just been closed.


resourcePostClose

void resourcePostClose()
Method invoked when the resource has been closed. Allows deregistering of this listener from the managed connection.



Copyright © 2009. All Rights Reserved.