public interface MessageStore
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the store releasing associated system resources
|
void |
commitChanges()
Ensure everything is persisted (synchronous)
|
void |
commitChanges(SynchronizationBarrier barrier)
Ensure everything is persisted (asynchronous)
|
void |
delete()
Delete the store
|
void |
delete(int handle)
Delete message associated to the given handle from the store
|
int |
first()
Get the first message handle stored
|
int |
getAbsoluteStoreUsage()
Get the absolute store usage amount (%)
(Ratio of used space over maximum allocatable space)
|
int |
getDeliveryMode()
Get the delivery mode for this store
|
int |
getStoreUsage()
Get the store usage amount (%)
(Ratio of used space over currently allocated space)
|
void |
init()
Initialize the message store
|
boolean |
isFailSafe()
Test if the store is syncing on write
|
boolean |
isLocked(int handle)
Check if the message associated with a given handle is locked
|
void |
lock(int handle)
Lock the message associated to a given handle
|
int |
next(int handle)
Get the next message handle after the given one
|
int |
previous(int handle)
Get the previous message handle after the given one
|
int |
replace(int handle,
AbstractMessage message)
Replace a message in the store
|
AbstractMessage |
retrieve(int handle)
Retrieve the message associated to a given handle
|
int |
size()
Get the number of messages in the store
|
int |
store(AbstractMessage message)
Put some message under in the store after the last message with the same priority
|
void |
unlock(int handle)
Unlock the message associated to a given handle
|
int getStoreUsage()
int getAbsoluteStoreUsage()
int first() throws javax.jms.JMSException
javax.jms.JMSExceptionint next(int handle) throws javax.jms.JMSException
handle - block handlejavax.jms.JMSExceptionint previous(int handle)
throws javax.jms.JMSException
handle - message handlejavax.jms.JMSExceptionint store(AbstractMessage message) throws javax.jms.JMSException
message - the message to storejavax.jms.JMSExceptionint replace(int handle,
AbstractMessage message)
throws javax.jms.JMSException
handle - message handlemessage - the message to storejavax.jms.JMSExceptionvoid delete(int handle)
throws javax.jms.JMSException
javax.jms.JMSException - on storage error or invalid handleAbstractMessage retrieve(int handle) throws javax.jms.JMSException
javax.jms.JMSException - on storage error or invalid handlevoid lock(int handle) throws javax.jms.JMSException
javax.jms.JMSException - on storage error or invalid handlevoid unlock(int handle)
throws javax.jms.JMSException
javax.jms.JMSException - on storage error or invalid handleboolean isLocked(int handle)
throws javax.jms.JMSException
javax.jms.JMSException - on storage error or invalid handleint size()
void commitChanges(SynchronizationBarrier barrier) throws javax.jms.JMSException
javax.jms.JMSExceptionvoid commitChanges()
throws javax.jms.JMSException
javax.jms.JMSExceptionvoid init() throws javax.jms.JMSException
javax.jms.JMSExceptionvoid close()
throws javax.jms.JMSException
javax.jms.JMSExceptionvoid delete()
throws javax.jms.JMSException
javax.jms.JMSExceptionboolean isFailSafe()
int getDeliveryMode()
Copyright © 2021. All rights reserved.