|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectquickfix.MemoryStore
public class MemoryStore
In-memory message store implementation.
MemoryStoreFactory
Constructor Summary | |
---|---|
MemoryStore()
|
|
MemoryStore(SessionID sessionID)
|
Method Summary | |
---|---|
void |
get(int startSequence,
int endSequence,
java.util.Collection<java.lang.String> messages)
Get messages within sequence number range (inclusive). |
boolean |
get(int sequence,
java.lang.String message)
This method is here for JNI API consistency but it's not implemented. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryStore() throws java.io.IOException
java.io.IOException
public MemoryStore(SessionID sessionID)
Method Detail |
---|
public void get(int startSequence, int endSequence, java.util.Collection<java.lang.String> messages) throws java.io.IOException
MessageStore
get
in interface MessageStore
startSequence
- the starting message sequence number.endSequence
- the ending message sequence number.messages
- the retrieved messages (out parameter)
java.io.IOException
- IO errorpublic boolean get(int sequence, java.lang.String message) throws java.io.IOException
java.io.IOException
public java.util.Date getCreationTime() throws java.io.IOException
MessageStore
getCreationTime
in interface MessageStore
java.io.IOException
- IO errorpublic int getNextSenderMsgSeqNum() throws java.io.IOException
getNextSenderMsgSeqNum
in interface MessageStore
java.io.IOException
public int getNextTargetMsgSeqNum() throws java.io.IOException
getNextTargetMsgSeqNum
in interface MessageStore
java.io.IOException
public void incrNextSenderMsgSeqNum() throws java.io.IOException
incrNextSenderMsgSeqNum
in interface MessageStore
java.io.IOException
public void incrNextTargetMsgSeqNum() throws java.io.IOException
incrNextTargetMsgSeqNum
in interface MessageStore
java.io.IOException
public void reset() throws java.io.IOException
MessageStore
reset
in interface MessageStore
java.io.IOException
- IO errorpublic boolean set(int sequence, java.lang.String message) throws java.io.IOException
MessageStore
set
in interface MessageStore
sequence
- the sequence numbermessage
- the raw FIX message string
java.io.IOException
- IO errorpublic void setNextSenderMsgSeqNum(int next) throws java.io.IOException
setNextSenderMsgSeqNum
in interface MessageStore
java.io.IOException
public void setNextTargetMsgSeqNum(int next) throws java.io.IOException
setNextTargetMsgSeqNum
in interface MessageStore
java.io.IOException
public void refresh() throws java.io.IOException
MessageStore
refresh
in interface MessageStore
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |