|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageStorage
The common message storage interface.
Method Summary | |
---|---|
void |
appendMessage(byte[] message)
Appends message to storage. |
void |
appendMessage(byte[] message,
int offset,
int length)
Appends message to storage. |
void |
backupStorage(SessionParameters sessionParameters)
Backup the storage. |
void |
close()
Close the storage. |
long |
initialize()
Initialize the storage. |
byte[] |
retrieveMessage(long seqNumber)
Retrieves message from storage. |
void |
retrieveMessages(long fromSeqNum,
long toSeqNun,
MessageStorageListener listener,
boolean blocking)
Retrieves message from storage. |
Method Detail |
---|
long initialize() throws IOException
IOException
- - if error occurred.void appendMessage(byte[] message, int offset, int length) throws IOException
message
- the messageoffset
- the initial offsetlength
- the length
IOException
- - if error occurred.void appendMessage(byte[] message) throws IOException
message
- the message
IOException
- - if error occurred.byte[] retrieveMessage(long seqNumber) throws IOException
seqNumber
- the sequence number of message
IOException
- - if error occurred.void retrieveMessages(long fromSeqNum, long toSeqNun, MessageStorageListener listener, boolean blocking) throws IOException
fromSeqNum
- the from sequence numbertoSeqNun
- the to sequence numberlistener
- the callback listenerblocking
- if parameter is true, the execution start in currentIOException
- - if error occurred.void close() throws IOException
IOException
- - if error occurred.void backupStorage(SessionParameters sessionParameters) throws IOException
sessionParameters
- the session parameters
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |