com.trankimtung.quickfixj.spring.boot.starter.connection.ConnectorCallback.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quickfixj-spring-boot-starter Show documentation
Show all versions of quickfixj-spring-boot-starter Show documentation
A QuickFix/J Spring Boot starter
The newest version!
package com.trankimtung.quickfixj.spring.boot.starter.connection
import quickfix.Application
import quickfix.SessionID
/**
* This interface is used for processing QuickFIX/J events for a certain session.
*
* @see [Application]
*/
interface ConnectorCallback : Application {
/**
* Get the session id whose events should be processed by this [ConnectorCallback].
*/
fun getSessionId(): SessionID
/**
* Checks if this [ConnectorCallback] should receive events for given session id.
*
* @param sessionId event's source session id.
*/
fun supportsSessionId(sessionId: SessionID?): Boolean =
sessionId?.equals(getSessionId()) ?: false
}