Class EventPublisherApplicationAdapter

java.lang.Object
io.allune.quickfixj.spring.boot.starter.application.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 Summary

    Constructors
    Constructor
    Description
    EventPublisherApplicationAdapter(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fromAdmin(quickfix.Message message, quickfix.SessionID sessionId)
    void
    fromApp(quickfix.Message message, quickfix.SessionID sessionId)
    void
    onCreate(quickfix.SessionID sessionId)
    void
    onLogon(quickfix.SessionID sessionId)
    void
    onLogout(quickfix.SessionID sessionId)
    void
    toAdmin(quickfix.Message message, quickfix.SessionID sessionId)
    void
    toApp(quickfix.Message message, quickfix.SessionID sessionId)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventPublisherApplicationAdapter

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

    • 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