public class Instrument extends Object implements OverflowListener
Constructor and Description |
---|
Instrument(String symbol,
ChannelContext channelContext) |
Instrument(String symbol,
int queueSize,
ChannelContext channelContext) |
Instrument(String symbol,
String secId,
ChannelContext channelContext) |
Instrument(String symbol,
String secId,
int queueSize,
ChannelContext channelContext) |
Instrument(String symbol,
String secId,
String secGroup,
ChannelContext channelContext) |
public Instrument(String symbol, ChannelContext channelContext)
public Instrument(String symbol, int queueSize, ChannelContext channelContext)
public Instrument(String symbol, String secId, ChannelContext channelContext)
public Instrument(String symbol, String secId, String secGroup, ChannelContext channelContext)
public Instrument(String symbol, String secId, int queueSize, ChannelContext channelContext)
public String getSecId()
public void setSecId(String secId)
public String getSymbol()
public void setSymbol(String symbol)
public String getSecGroup()
public void setSecGroup(String secGroup)
public boolean isActive()
public void activate()
public void setActive(boolean active)
public long getProcessedRptSeqNum83()
public void setProcessedRptSeqNum83(long processedRptSeqNum83)
public long getNextProcessedRptSeqNum83()
public long getProcessedSeqNum34()
public void setProcessedSeqNum34(long processedSeqNum34)
public void setState(State state)
public State getState()
public void incrementProcessedRptSeqNum83()
public boolean isExpectedRptSeqNum83(long incomingRptSeqNum)
public boolean isGrRptSeqNum83(long incomingSeqNum)
public int getMessageSynchronizeQueue()
public long getRecoveryMsgStartSeqNum34()
public void setRecoveryMsgStartSeqNum34(long msgStartSeqNum34)
public long getRecoveryMsgEndSeqNum34()
public void setRecoveryMsgEndSeqNum34(long msgEndSeqNum34)
public void processIncrement(GroupEntry entry, InstrumentMessageProcessor incrementMessageProcessor)
public void processSnapshot(com.epam.fix.message.FIXFieldList message, InstrumentMessageProcessor snapMessageProcessor, InstrumentMessageProcessor incrementMessageProcessor)
protected void stopRecovery()
public boolean processMessageInQueue(IncrementListener messageListener)
messageListener
- to process messagesfalse | if we have no message to process |
true | elsewhere |
false | if we don`t process all messages |
true | if we process all messages |
public long getFirstSeqNumInQueue()
public long getQueuedEntriesCount()
public void clearMessageQueue()
public void putToQueue(int rptSeqNum83, com.epam.fastadaptor.util.queue.MessageHolder messageHolder)
public void onOverflow()
onOverflow
in interface OverflowListener
public long jumpToSeqNumAndReturnLastRPT(long incomingSeqNum)
public boolean isNeedSnapshotRecovery()
public void setNeedSnapshotRecovery(boolean needSnapshotRecovery)
public void notifyNextCircle()
public boolean isSnapshotReceivedFlag()
public void setSnapshotReceivedFlag()
public void resetSnapshotReceivedFlag()
public void resetCircleNumb()
public int getCircleNumb()
public boolean isRecovered(long seqNum34)
public void checkAndNotifyIfPrevMessageEnd(long newSeqNum34)
public void onIncrementMessageEnd(long seqNum34)
public void setLastFinishedSeqNum34(long lastFinishedSeqNum)
protected InstrumentListener getInstrumentListener()
Copyright © 2000–2025 EPAM Systems. All rights reserved.