Package org.apache.activemq.ra
Class ActiveMQEndpointWorker
- java.lang.Object
-
- org.apache.activemq.ra.ActiveMQEndpointWorker
-
public class ActiveMQEndpointWorker extends Object
$Date$
-
-
Field Summary
Fields Modifier and Type Field Description protected ActiveMQEndpointActivationKeyendpointActivationKeyprotected MessageEndpointFactoryendpointFactorystatic MethodON_MESSAGE_METHODprotected booleantransactedprotected WorkManagerworkManager
-
Constructor Summary
Constructors Modifier Constructor Description protectedActiveMQEndpointWorker(MessageResourceAdapter adapter, ActiveMQEndpointActivationKey key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActiveMQConnectiongetConnection()protected voidregisterThreadSession(Session session)static voidsafeClose(Connection c)static voidsafeClose(ConnectionConsumer cc)voidsetConnection(ActiveMQConnection activeMQConnection)voidstart()voidstop()protected voidunregisterThreadSession(Session session)
-
-
-
Field Detail
-
ON_MESSAGE_METHOD
public static final Method ON_MESSAGE_METHOD
-
endpointActivationKey
protected final ActiveMQEndpointActivationKey endpointActivationKey
-
endpointFactory
protected final MessageEndpointFactory endpointFactory
-
workManager
protected final WorkManager workManager
-
transacted
protected final boolean transacted
-
-
Constructor Detail
-
ActiveMQEndpointWorker
protected ActiveMQEndpointWorker(MessageResourceAdapter adapter, ActiveMQEndpointActivationKey key) throws ResourceException
- Throws:
ResourceException
-
-
Method Detail
-
safeClose
public static void safeClose(Connection c)
- Parameters:
c-
-
safeClose
public static void safeClose(ConnectionConsumer cc)
- Parameters:
cc-
-
start
public void start() throws ResourceException- Throws:
ResourceException
-
stop
public void stop() throws InterruptedException- Throws:
InterruptedException
-
registerThreadSession
protected void registerThreadSession(Session session)
-
unregisterThreadSession
protected void unregisterThreadSession(Session session)
-
setConnection
public void setConnection(ActiveMQConnection activeMQConnection)
-
getConnection
protected ActiveMQConnection getConnection()
-
-