Class JcaExecutorServiceManagedConnection
java.lang.Object
org.camunda.bpm.container.impl.threading.ra.outbound.JcaExecutorServiceManagedConnection
- All Implemented Interfaces:
javax.resource.spi.ManagedConnection
public class JcaExecutorServiceManagedConnection
extends Object
implements javax.resource.spi.ManagedConnection
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected JcaExecutorServiceConnectionImpl
protected ExecutorService
protected List<javax.resource.spi.ConnectionEventListener>
protected PrintWriter
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConnectionEventListener
(javax.resource.spi.ConnectionEventListener listener) void
associateConnection
(Object connection) void
cleanup()
void
destroy()
getConnection
(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) getExecuteJobsRunnable
(List<String> jobIds, ProcessEngineImpl processEngine) javax.resource.spi.LocalTransaction
javax.resource.spi.ManagedConnectionMetaData
void
removeConnectionEventListener
(javax.resource.spi.ConnectionEventListener listener) boolean
void
setLogWriter
(PrintWriter out)
-
Field Details
-
logwriter
-
mcf
-
listeners
-
connection
-
delegate
-
-
Constructor Details
-
JcaExecutorServiceManagedConnection
public JcaExecutorServiceManagedConnection() -
JcaExecutorServiceManagedConnection
-
-
Method Details
-
getConnection
public Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException - Specified by:
getConnection
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
associateConnection
- Specified by:
associateConnection
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
cleanup
public void cleanup() throws javax.resource.ResourceException- Specified by:
cleanup
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
destroy
public void destroy() throws javax.resource.ResourceException- Specified by:
destroy
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) - Specified by:
addConnectionEventListener
in interfacejavax.resource.spi.ManagedConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener listener) - Specified by:
removeConnectionEventListener
in interfacejavax.resource.spi.ManagedConnection
-
getLogWriter
- Specified by:
getLogWriter
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
setLogWriter
- Specified by:
setLogWriter
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException- Specified by:
getLocalTransaction
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
getXAResource
- Specified by:
getXAResource
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException- Specified by:
getMetaData
in interfacejavax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
-
schedule
-
getExecuteJobsRunnable
-