public interface SessionMBean
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the session.
|
int |
getAcknowledgeMode()
API method.
|
int |
getCompressedMinSize()
Get the compressedMinSize for this session.
|
int |
getCompressionLevel()
Get the compression level for this Connection.
|
int |
getQueueMessageReadMax()
Get the maximum number of messages that can be read at once from a queue
for this Session.
|
String |
getRequestStatus()
The status of the current request.
|
String |
getSessionMode()
The way the session is used.
|
String |
getStatus()
Status of the session
|
int |
getTopicAckBufferMax()
Get the maximum number of acknowledgements that can be buffered when
using Session.DUPS_OK_ACKNOWLEDGE mode for this session.
|
int |
getTopicActivationThreshold()
Get the threshold of activation for this session.
|
int |
getTopicPassivationThreshold()
Get the threshold of passivation for this session.
|
boolean |
getTransacted()
API method.
|
boolean |
isAsyncSend()
Indicates whether the messages produced are asynchronously sent
or not (without or with acknowledgment).
|
boolean |
isAsyncSub()
Indicates whether the subscription request is asynchronously handled
or not.
|
boolean |
isAutoAck()
true if the session's acknowledgements are automatic. |
boolean |
isImplicitAck()
Indicates whether the messages consumed are implicitly acknowledged
or not.
|
boolean |
isStarted() |
void |
unsubscribe(String name)
API method.
|
String getStatus()
String getSessionMode()
String getRequestStatus()
boolean isAutoAck()
true
if the session's acknowledgements are automatic.boolean isImplicitAck()
This attribute is inherited from Connection at initialization, by default false.
#implicitAck
boolean isAsyncSend()
This attribute is inherited from Connection at initialization, by default false.
#asyncSend
int getQueueMessageReadMax()
This attribute is inherited from Connection at initialization, default value is 1.
#queueMessageReadMax
int getTopicAckBufferMax()
This attribute is inherited from Connection at initialization.
FactoryParameters.topicAckBufferMax
,
#topicAckBufferMax
int getTopicPassivationThreshold()
This threshold is the maximum messages number over which the subscription is passivated.
This attribute is inherited from Connection at initialization, default value is Integer.MAX_VALUE.
#topicPassivationThreshold
int getTopicActivationThreshold()
This threshold is the minimum messages number below which the subscription is activated.
This attribute is inherited from Connection at initialization, default value is 0.
#topicActivationThreshold
boolean isAsyncSub()
Default value is false, the subscription is handled synchronously so the topic must be accessible.
boolean isStarted()
int getAcknowledgeMode() throws JMSException
JMSException
- Actually never thrown.boolean getTransacted() throws JMSException
IllegalStateException
- If the session is closed.JMSException
void unsubscribe(String name) throws JMSException
IllegalStateException
- If the session is closed or if the
connection is broken.InvalidDestinationException
- If the subscription does not
exist.JMSException
- If the request fails for any other reason.void close() throws JMSException
JMSException
int getCompressedMinSize()
The minimum message body size before a message body compression.
This attribute is inherited from Connection at initialization, default value is 0 no compression
#compressedMinSize
int getCompressionLevel()
This attribute is inherited from FactoryParameters, default value is Deflater.BEST_SPEED (1).
#compressionLevel
Copyright © 2013 ScalAgent D.T.. All Rights Reserved.