|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.fixengine.session.messagehandler.AbstractSessionMessageHandler com.epam.fixengine.session.messagehandler.HandlerChain
public final class HandlerChain
The HandlerChain
provides the chain of responsibility pattern.
Field Summary | |
---|---|
protected CompositeMessageHandler |
compositeListener
|
protected List<SessionMessageHandler> |
messageHandlers
|
protected List<PostProcessMessageHandler> |
postProcessMessageHandlers
|
protected List<PreProcessMessageHandler> |
preProcessMessageHandlers
|
protected RawFIXUtil.RawTags |
rawTags
|
Fields inherited from class com.epam.fixengine.session.messagehandler.AbstractSessionMessageHandler |
---|
log, logIsTraceEnabled |
Constructor Summary | |
---|---|
HandlerChain()
Creates the HandlerChain with composite message handler. |
Method Summary | |
---|---|
void |
addGlobalMessageHandler(AbstractGlobalMessageHandler globalMessageHandler)
Adds the global message handler. |
void |
addGlobalPostProcessMessageHandler(AbstractGlobalPostProcessSessionMessageHandler globalMessageHandler)
Adds the global message handler. |
void |
addGlobalPreProcessMessageHandler(PreProcessMessageHandler globalMessageHandler)
|
void |
addSessionMessageHandler(String msgType,
SessionMessageHandler messageHandler)
Adds the specific message handle. |
protected void |
finalize()
|
boolean |
isNeedPreProcess()
|
void |
onMessage(MsgBuf message)
|
void |
onNewMessage(FIXFieldList message)
This method is invoked every time when FIX Engine receives application message. |
void |
onPostProcessMessage(MsgBuf message)
|
void |
onSessionStateChange(SessionState sessionState)
|
void |
setFIXSession(ExtendedFIXSession fixSession)
Sets the extended fix session. |
void |
setUserListener(FIXSessionListener listener)
Sets the user message compositeListener. |
Methods inherited from class com.epam.fixengine.session.messagehandler.AbstractSessionMessageHandler |
---|
getFIXSession, logErrorToSession, logWarnToSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CompositeMessageHandler compositeListener
protected List<SessionMessageHandler> messageHandlers
protected List<PreProcessMessageHandler> preProcessMessageHandlers
protected List<PostProcessMessageHandler> postProcessMessageHandlers
protected RawFIXUtil.RawTags rawTags
Constructor Detail |
---|
public HandlerChain()
HandlerChain
with composite message handler.
Method Detail |
---|
public void setFIXSession(ExtendedFIXSession fixSession)
SessionMessageHandler
setFIXSession
in interface SessionMessageHandler
setFIXSession
in class AbstractSessionMessageHandler
fixSession
- the extended fix sessionAbstractSessionMessageHandler.setFIXSession(com.epam.fixengine.session.ExtendedFIXSession)
public void addSessionMessageHandler(String msgType, SessionMessageHandler messageHandler)
msgType
- the message typemessageHandler
- - the message handlerpublic void addGlobalMessageHandler(AbstractGlobalMessageHandler globalMessageHandler)
globalMessageHandler
- the global message handlerpublic void addGlobalPostProcessMessageHandler(AbstractGlobalPostProcessSessionMessageHandler globalMessageHandler)
globalMessageHandler
- the global message handlerpublic void addGlobalPreProcessMessageHandler(PreProcessMessageHandler globalMessageHandler)
public void onNewMessage(FIXFieldList message)
FIXMessageListener
message
- the incoming messageFIXMessageListener.onNewMessage(com.epam.fix.message.FIXFieldList)
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void onMessage(MsgBuf message)
public void onPostProcessMessage(MsgBuf message)
public void onSessionStateChange(SessionState sessionState)
FIXSessionListener.onSessionStateChange(com.epam.fixengine.SessionState)
public void setUserListener(FIXSessionListener listener)
listener
- the session compositeListenerpublic boolean isNeedPreProcess()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |