com.epam.cmemdp.impl
Class Instrument
java.lang.Object
com.epam.cmemdp.impl.Instrument
- All Implemented Interfaces:
- OverflowListener
public class Instrument
- extends java.lang.Object
- implements OverflowListener
Constructor Summary |
Instrument(java.lang.String securityDescription,
int incrementQueueSize,
int corridorQueueSize)
|
Instrument(java.lang.String secDesc,
int incrementQueueSize,
int corridorQueueSize,
RecoveryOptions recoveryOptions)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SEC_GROUP_TAG_ID
public static final int SEC_GROUP_TAG_ID
- See Also:
- Constant Field Values
SEC_DEF_TAG_ID
public static final int SEC_DEF_TAG_ID
- See Also:
- Constant Field Values
SYMBOL_TAG_ID
public static final int SYMBOL_TAG_ID
- See Also:
- Constant Field Values
insideRecovery
public java.util.concurrent.atomic.AtomicBoolean insideRecovery
Instrument
public Instrument(java.lang.String securityDescription,
int incrementQueueSize,
int corridorQueueSize)
Instrument
public Instrument(java.lang.String secDesc,
int incrementQueueSize,
int corridorQueueSize,
RecoveryOptions recoveryOptions)
getSecDesc
public java.lang.String getSecDesc()
setSecurityDescription
public void setSecurityDescription(java.lang.String secDesc)
isActive
public boolean isActive()
setActive
public void setActive(boolean active)
active
public void active()
isRecovery
public boolean isRecovery()
setRecovery
public void setRecovery(boolean recovery)
getRecoveryOptions
public RecoveryOptions getRecoveryOptions()
setRecoveryOptions
public void setRecoveryOptions(RecoveryOptions recoveryOptions)
getChannel
public MDChannel getChannel()
setChannel
public void setChannel(MDChannel channel)
getSecurityID
public long getSecurityID()
setSecurityID
public void setSecurityID(long securityID)
isListenForIncrements
public boolean isListenForIncrements()
setListenForIncrements
public void setListenForIncrements(boolean listenForIncrements)
isListenForSnapshots
public boolean isListenForSnapshots()
setListenForSnapshots
public void setListenForSnapshots(boolean listenForSnapshots)
getNextSequenceID83
public long getNextSequenceID83()
setNextSequenceID83
public void setNextSequenceID83(long nextSequenceID83)
incrementNextSequenceID83
public void incrementNextSequenceID83()
getIncrementalQueue
public com.epam.mdpadaptor.util.queue.MessageQueue getIncrementalQueue()
getInstrumentListener
public InstrumentListener getInstrumentListener()
setInstrumentListener
public void setInstrumentListener(InstrumentListener instrumentListener)
getRevision
public long getRevision()
setRevision
public void setRevision(long revision)
getCorridor
public Corridor getCorridor()
resetFirstRecovery
public void resetFirstRecovery()
switchOnFirstRecovery
public void switchOnFirstRecovery()
isFirstRecovery
public boolean isFirstRecovery()
resetRecoveryByOverflow
public void resetRecoveryByOverflow()
isRecoveryByOverflow
public boolean isRecoveryByOverflow()
isForcedRecovery
public boolean isForcedRecovery()
setThreadRecovery
public void setThreadRecovery(boolean recovery)
isThreadRecovery
public boolean isThreadRecovery()
getLastProcessedSeqNum34
public long getLastProcessedSeqNum34()
setLastProcessedSeqNum34
public void setLastProcessedSeqNum34(long lastProcessedSeqNum34)
getRecoveryMsgStartSeqNum
public long getRecoveryMsgStartSeqNum()
setRecoveryMsgStartSeqNum
public void setRecoveryMsgStartSeqNum(long recoveryMsgStartSeqNum)
getRecoveryMsgEndSeqNum
public long getRecoveryMsgEndSeqNum()
setRecoveryMsgEndSeqNum
public void setRecoveryMsgEndSeqNum(long recoveryMsgEndSeqNum)
isHistoryRecovery
public boolean isHistoryRecovery()
setHistoryRecovery
public void setHistoryRecovery(boolean historyRecovery)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
checkNextRptSecNum83
public boolean checkNextRptSecNum83(long rptSeqNum)
onOverflow
public void onOverflow()
- Specified by:
onOverflow
in interface OverflowListener
incrementAndGetSnapshotCyclesCounter
public int incrementAndGetSnapshotCyclesCounter()
resetSnapshotCyclesCounter
public void resetSnapshotCyclesCounter()
Copyright © 2000-2014 EPAM Systems. All Rights Reserved.