Class ExsimFeedModule.FixMessageProcessor
- java.lang.Object
-
- org.marketcetera.core.QueueProcessor<Clazz>
-
- org.marketcetera.core.BatchQueueProcessor<ExsimFeedModule.MessageWrapper>
-
- org.marketcetera.marketdata.exsim.ExsimFeedModule.FixMessageProcessor
-
- All Implemented Interfaces:
Runnable,org.springframework.context.Lifecycle
- Enclosing class:
- ExsimFeedModule
private class ExsimFeedModule.FixMessageProcessor extends BatchQueueProcessor<ExsimFeedModule.MessageWrapper>
Process incoming FIX messages received from the exchange simulator.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Field Summary
Fields Modifier and Type Field Description private Stringdescriptionhuman-readable description of the processor-
Fields inherited from class org.marketcetera.core.QueueProcessor
processQueueMetric, queueCounterMetric
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFixMessageProcessor()Create a new FixMessageProcessor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidadd(quickfix.Message inMessage)Add the given message to the processing queue.protected voidprocessData(Deque<ExsimFeedModule.MessageWrapper> inData)StringtoString()-
Methods inherited from class org.marketcetera.core.BatchQueueProcessor
add, addAll, getQueue, processData
-
Methods inherited from class org.marketcetera.core.QueueProcessor
getLastException, isRunning, onStart, onStop, run, shutdownOnException, size, start, stop, wasInterrupted
-
-
-
-
Field Detail
-
description
private final String description
human-readable description of the processor
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classQueueProcessor<ExsimFeedModule.MessageWrapper>
-
processData
protected void processData(Deque<ExsimFeedModule.MessageWrapper> inData) throws Exception
- Specified by:
processDatain classBatchQueueProcessor<ExsimFeedModule.MessageWrapper>- Throws:
Exception
-
add
private void add(quickfix.Message inMessage) throws quickfix.FieldNotFoundAdd the given message to the processing queue.- Parameters:
inMessage- aquickfix.Messagevalue- Throws:
quickfix.FieldNotFound- if the message is invalid
-
-