|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageStore
Used by a Session to store and retrieve messages for resend purposes.
Session
Method Summary | |
---|---|
void |
get(int startSequence,
int endSequence,
java.util.Collection<java.lang.String> messages)
Get messages within sequence number range (inclusive). |
java.util.Date |
getCreationTime()
Get the session creation time. |
int |
getNextSenderMsgSeqNum()
|
int |
getNextTargetMsgSeqNum()
|
void |
incrNextSenderMsgSeqNum()
|
void |
incrNextTargetMsgSeqNum()
|
void |
refresh()
Refresh session state from a shared state storage (e.g. database, file, ...). |
void |
reset()
Reset the message store. |
boolean |
set(int sequence,
java.lang.String message)
Adds a raw fix messages to the store with the given sequence number. |
void |
setNextSenderMsgSeqNum(int next)
|
void |
setNextTargetMsgSeqNum(int next)
|
Method Detail |
---|
boolean set(int sequence, java.lang.String message) throws java.io.IOException
sequence
- the sequence numbermessage
- the raw FIX message string
java.io.IOException
- IO errorvoid get(int startSequence, int endSequence, java.util.Collection<java.lang.String> messages) throws java.io.IOException
startSequence
- the starting message sequence number.endSequence
- the ending message sequence number.messages
- the retrieved messages (out parameter)
java.io.IOException
- IO errorint getNextSenderMsgSeqNum() throws java.io.IOException
java.io.IOException
int getNextTargetMsgSeqNum() throws java.io.IOException
java.io.IOException
void setNextSenderMsgSeqNum(int next) throws java.io.IOException
java.io.IOException
void setNextTargetMsgSeqNum(int next) throws java.io.IOException
java.io.IOException
void incrNextSenderMsgSeqNum() throws java.io.IOException
java.io.IOException
void incrNextTargetMsgSeqNum() throws java.io.IOException
java.io.IOException
java.util.Date getCreationTime() throws java.io.IOException
java.io.IOException
- IO errorvoid reset() throws java.io.IOException
java.io.IOException
- IO errorvoid refresh() throws java.io.IOException
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |