Class EventPublisherApplicationAdapter

  • All Implemented Interfaces:
    quickfix.Application

    public class EventPublisherApplicationAdapter
    extends Object
    implements quickfix.Application
    Implements the Application interface publishing the received payload as a Spring ApplicationEvent to all matching listeners registered.

    In case the ApplicationEventPublisher.publishEvent(Object) method throws an exception, this exception will be propagated up to the Session.next() method. Depending on the value of RejectMessageOnUnhandledException in the quickfixj configuration, the message will be redelivered or dismissed.

    If this configuration is enabled, an uncaught Exception or Error in the application's message processing will lead to a (BusinessMessage)Reject being sent to the counterparty and the incoming message sequence number will be incremented.

    If disabled (default), the problematic incoming message is discarded and the message sequence number is not incremented. Processing of the next valid message will cause detection of a sequence gap and a ResendRequest will be generated.

    Author:
    Eduardo Sanchez-Ros
    • Constructor Detail

      • EventPublisherApplicationAdapter

        public EventPublisherApplicationAdapter​(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
    • Method Detail

      • fromAdmin

        public void fromAdmin​(quickfix.Message message,
                              quickfix.SessionID sessionId)
        Specified by:
        fromAdmin in interface quickfix.Application
      • fromApp

        public void fromApp​(quickfix.Message message,
                            quickfix.SessionID sessionId)
        Specified by:
        fromApp in interface quickfix.Application
      • onCreate

        public void onCreate​(quickfix.SessionID sessionId)
        Specified by:
        onCreate in interface quickfix.Application
      • onLogon

        public void onLogon​(quickfix.SessionID sessionId)
        Specified by:
        onLogon in interface quickfix.Application
      • onLogout

        public void onLogout​(quickfix.SessionID sessionId)
        Specified by:
        onLogout in interface quickfix.Application
      • toAdmin

        public void toAdmin​(quickfix.Message message,
                            quickfix.SessionID sessionId)
        Specified by:
        toAdmin in interface quickfix.Application
      • toApp

        public void toApp​(quickfix.Message message,
                          quickfix.SessionID sessionId)
        Specified by:
        toApp in interface quickfix.Application