public class SleepycatStore extends Object implements MessageStore
SleepycatStoreFactory
Constructor and Description |
---|
SleepycatStore(SessionID sessionID,
String databaseDir,
String sequenceDbName,
String messageDbName) |
Modifier and Type | Method and Description |
---|---|
void |
get(int startSequence,
int endSequence,
Collection<String> messages)
Get messages within sequence number range (inclusive).
|
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 SleepycatStore(SessionID sessionID, String databaseDir, String sequenceDbName, String messageDbName) throws IOException
IOException
public void get(int startSequence, int endSequence, Collection<String> messages) throws IOException
MessageStore
get
in interface MessageStore
startSequence
- the starting message sequence number.endSequence
- the ending message sequence number.messages
- the retrieved messages (out parameter)IOException
- IO errorpublic Date getCreationTime() throws IOException
MessageStore
getCreationTime
in interface MessageStore
IOException
- IO errorpublic int getNextSenderMsgSeqNum() throws IOException
getNextSenderMsgSeqNum
in interface MessageStore
IOException
public int getNextTargetMsgSeqNum() throws IOException
getNextTargetMsgSeqNum
in interface MessageStore
IOException
public void incrNextSenderMsgSeqNum() throws IOException
incrNextSenderMsgSeqNum
in interface MessageStore
IOException
public void incrNextTargetMsgSeqNum() throws IOException
incrNextTargetMsgSeqNum
in interface MessageStore
IOException
public void reset() throws IOException
MessageStore
reset
in interface MessageStore
IOException
- IO errorpublic boolean set(int sequence, String message) throws IOException
MessageStore
set
in interface MessageStore
sequence
- the sequence numbermessage
- the raw FIX message stringIOException
- IO errorpublic void setNextSenderMsgSeqNum(int next) throws IOException
setNextSenderMsgSeqNum
in interface MessageStore
IOException
public void setNextTargetMsgSeqNum(int next) throws IOException
setNextTargetMsgSeqNum
in interface MessageStore
IOException
public void refresh() throws IOException
MessageStore
refresh
in interface MessageStore
IOException
Copyright © 2021. All rights reserved.