com.hazelcast.jca
Class ManagedConnectionImpl

java.lang.Object
  extended by com.hazelcast.jca.JcaBase
      extended by com.hazelcast.jca.ManagedConnectionImpl
All Implemented Interfaces:
javax.resource.spi.ManagedConnection

public class ManagedConnectionImpl
extends JcaBase
implements javax.resource.spi.ManagedConnection

Implementation class of ManagedConnection


Constructor Summary
ManagedConnectionImpl(javax.resource.spi.ConnectionRequestInfo cxRequestInfo, ManagedConnectionFactoryImpl factory)
           
 
Method Summary
 void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
           
 void associateConnection(Object arg0)
           
 void cleanup()
           
 void destroy()
           
 HazelcastConnection getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
           
 javax.resource.spi.ConnectionRequestInfo getCxRequestInfo()
           
 HazelcastTransaction getLocalTransaction()
           
 com.hazelcast.jca.HazelcastManagedConnectionMetaData getMetaData()
           
 HazelcastTransactionImpl getTx()
           
 XAResource getXAResource()
           
protected  boolean isDeliverClosed()
           
protected  boolean isDeliverCommitedEvent()
           
protected  boolean isDeliverRolledback()
           
protected  boolean isDeliverStartedEvent()
           
 void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
           
 String toString()
           
 
Methods inherited from class com.hazelcast.jca.JcaBase
getLogWriter, setLogWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.resource.spi.ManagedConnection
getLogWriter, setLogWriter
 

Constructor Detail

ManagedConnectionImpl

public ManagedConnectionImpl(javax.resource.spi.ConnectionRequestInfo cxRequestInfo,
                             ManagedConnectionFactoryImpl factory)
Method Detail

addConnectionEventListener

public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface javax.resource.spi.ManagedConnection

associateConnection

public void associateConnection(Object arg0)
                         throws javax.resource.ResourceException
Specified by:
associateConnection in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

cleanup

public void cleanup()
             throws javax.resource.ResourceException
Specified by:
cleanup in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

destroy

public void destroy()
             throws javax.resource.ResourceException
Specified by:
destroy in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getConnection

public HazelcastConnection getConnection(Subject subject,
                                         javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
Specified by:
getConnection in interface javax.resource.spi.ManagedConnection

getCxRequestInfo

public javax.resource.spi.ConnectionRequestInfo getCxRequestInfo()

getLocalTransaction

public HazelcastTransaction getLocalTransaction()
Specified by:
getLocalTransaction in interface javax.resource.spi.ManagedConnection

getMetaData

public com.hazelcast.jca.HazelcastManagedConnectionMetaData getMetaData()
Specified by:
getMetaData in interface javax.resource.spi.ManagedConnection

getXAResource

public XAResource getXAResource()
                         throws javax.resource.ResourceException
Specified by:
getXAResource in interface javax.resource.spi.ManagedConnection
Throws:
javax.resource.ResourceException

getTx

public HazelcastTransactionImpl getTx()

isDeliverClosed

protected boolean isDeliverClosed()

isDeliverCommitedEvent

protected boolean isDeliverCommitedEvent()

isDeliverRolledback

protected boolean isDeliverRolledback()

isDeliverStartedEvent

protected boolean isDeliverStartedEvent()

removeConnectionEventListener

public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface javax.resource.spi.ManagedConnection

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.