public class FileStore extends Object implements MessageStore, Closeable
FileStoreFactory| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the store's files.
|
void |
closeAndDeleteFiles() |
void |
get(int startSequence,
int endSequence,
Collection<String> messages)
Get messages within sequence number range (inclusive).
|
boolean |
get(int sequence,
String message)
This method is here for JNI API consistency but it's not
implemented.
|
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,
String message)
Adds a raw fix messages to the store with the given sequence number.
|
void |
setNextSenderMsgSeqNum(int next) |
void |
setNextTargetMsgSeqNum(int next) |
public Date getCreationTime() throws IOException
MessageStoregetCreationTime in interface MessageStoreIOException - IO errorpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void closeAndDeleteFiles()
throws IOException
IOExceptionpublic int getNextSenderMsgSeqNum()
throws IOException
getNextSenderMsgSeqNum in interface MessageStoreIOExceptionpublic int getNextTargetMsgSeqNum()
throws IOException
getNextTargetMsgSeqNum in interface MessageStoreIOExceptionpublic void setNextSenderMsgSeqNum(int next)
throws IOException
setNextSenderMsgSeqNum in interface MessageStoreIOExceptionpublic void setNextTargetMsgSeqNum(int next)
throws IOException
setNextTargetMsgSeqNum in interface MessageStoreIOExceptionpublic void incrNextSenderMsgSeqNum()
throws IOException
incrNextSenderMsgSeqNum in interface MessageStoreIOExceptionpublic void incrNextTargetMsgSeqNum()
throws IOException
incrNextTargetMsgSeqNum in interface MessageStoreIOExceptionpublic void get(int startSequence,
int endSequence,
Collection<String> messages)
throws IOException
MessageStoreget in interface MessageStorestartSequence - the starting message sequence number.endSequence - the ending message sequence number.messages - the retrieved messages (out parameter)IOException - IO errorpublic boolean get(int sequence,
String message)
throws IOException
IOExceptionpublic boolean set(int sequence,
String message)
throws IOException
MessageStoreset in interface MessageStoresequence - the sequence numbermessage - the raw FIX message stringIOException - IO errorpublic void refresh()
throws IOException
MessageStorerefresh in interface MessageStoreIOExceptionpublic void reset()
throws IOException
MessageStorereset in interface MessageStoreIOException - IO errorCopyright © 2021. All rights reserved.