public class LocalConnection extends AbstractConnection
Local implementation of a JMS Connection
| Modifier and Type | Field and Description |
|---|---|
protected FFMQEngine |
engine |
clientID, closed, externalAccessLock, id, idProvider, started| Constructor and Description |
|---|
LocalConnection(FFMQEngine engine,
SecurityContext securityContext,
String clientID)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(javax.jms.Destination destination,
String action)
Check if the connection has the required credentials to use
the given destination
|
void |
checkPermission(String resource,
String action)
Check if the connection has the required credentials to use the given resource
|
javax.jms.Session |
createSession(boolean transacted,
int acknowledgeMode) |
javax.jms.Session |
createSession(IntegerID sessionId,
boolean transacted,
int acknowledgeMode) |
void |
deleteTemporaryQueue(String queueName)
Delete a temporary queue
|
void |
deleteTemporaryTopic(String topicName)
Delete a temporary topic
|
SecurityContext |
getSecurityContext()
Get the connection security context
|
boolean |
isSecurityEnabled()
Check if there is a security context enabled for this connection
|
protected void |
onConnectionClose() |
void |
setClientID(String clientID) |
void |
start() |
void |
stop() |
checkNotClosed, close, createConnectionConsumer, createDurableConnectionConsumer, exceptionOccured, finalize, getClientID, getConsumersCount, getEntitiesDescription, getExceptionListener, getId, getMetaData, getProducersCount, getSessionsCount, isRegisteredTemporaryQueue, isRegisteredTemporaryTopic, isStarted, lookupRegisteredSession, onConnectionClosed, registerSession, registerTemporaryQueue, registerTemporaryTopic, setExceptionListener, toString, unregisterSession, unregisterTemporaryQueue, unregisterTemporaryTopic, waitForDeliverySync, wakeUpLocalConsumersprotected FFMQEngine engine
public LocalConnection(FFMQEngine engine, SecurityContext securityContext, String clientID)
public final void setClientID(String clientID) throws javax.jms.JMSException
setClientID in interface javax.jms.ConnectionsetClientID in class AbstractConnectionjavax.jms.JMSExceptionpublic final javax.jms.Session createSession(boolean transacted,
int acknowledgeMode)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final javax.jms.Session createSession(IntegerID sessionId, boolean transacted, int acknowledgeMode) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final void start()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final void stop()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final void deleteTemporaryQueue(String queueName) throws javax.jms.JMSException
AbstractConnectiondeleteTemporaryQueue in class AbstractConnectionjavax.jms.JMSExceptionpublic final void deleteTemporaryTopic(String topicName) throws javax.jms.JMSException
AbstractConnectiondeleteTemporaryTopic in class AbstractConnectionjavax.jms.JMSExceptionpublic final void checkPermission(javax.jms.Destination destination,
String action)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final boolean isSecurityEnabled()
public final void checkPermission(String resource, String action) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic final SecurityContext getSecurityContext()
protected void onConnectionClose()
onConnectionClose in class AbstractConnectionCopyright © 2019. All rights reserved.