public class ApplicationFunctionalAdapter extends Object implements Application
| Constructor and Description |
|---|
ApplicationFunctionalAdapter() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Message> |
addFromAdminListener(Class<T> clazz,
FromAdminListener<T> fromAdminListener)
Add a listener of fromAdmin operation.
|
void |
addFromAdminListener(FromAdminListener<Message> fromAdminListener)
Add a listener of fromAdmin operation.
|
<T extends Message> |
addFromAppListener(Class<T> clazz,
FromAppListener<T> fromAppListener)
Add a listener of fromApp operation.
|
void |
addFromAppListener(FromAppListener<Message> fromAppListener)
Add a listener of fromApp operation.
|
void |
addOnCreateListener(Consumer<SessionID> onCreateListener)
Add a Consumer of SessionID to listen to onCreate operation.
|
void |
addOnLogonListener(Consumer<SessionID> onLogonListener)
Add a Consumer of SessionID to listen to onLogon operation.
|
void |
addOnLogoutListener(Consumer<SessionID> onLogoutListener)
Add a Consumer of SessionID to listen to onLogout operation.
|
void |
addToAdminListener(BiConsumer<Message,SessionID> toAdminListener)
Add a BiConsumer of SessionID to listen to toAdmin operation.
|
<T extends Message> |
addToAdminListener(Class<T> clazz,
BiConsumer<T,SessionID> toAdminListener)
Add a type-safe BiConsumer of SessionID to listen to toAdmin operation.
|
<T extends Message> |
addToAppListener(Class<T> clazz,
ToAppListener<T> toAppListener)
Add a listener of toApp operation.
|
void |
addToAppListener(ToAppListener<Message> toAppListener)
Add a listener of toApp operation.
|
void |
fromAdmin(Message message,
SessionID sessionId)
This callback notifies you when an administrative message is sent from a
counterparty to your FIX engine.
|
void |
fromApp(Message message,
SessionID sessionId)
This callback receives messages for the application.
|
void |
onCreate(SessionID sessionId)
This method is called when quickfix creates a new session.
|
void |
onLogon(SessionID sessionId)
This callback notifies you when a valid logon has been established with a
counter party.
|
void |
onLogout(SessionID sessionId)
This callback notifies you when an FIX session is no longer online.
|
<T extends Message> |
removeFromAdminListener(FromAdminListener<T> fromAdminListener)
Remove a listener of fromAdmin operation.
|
<T extends Message> |
removeFromAppListener(FromAppListener<T> fromAppListener)
Remove a listener of fromApp operation.
|
void |
removeOnCreateListener(Consumer<SessionID> onCreateListener)
Remove a Consumer of SessionID from onCreate operation.
|
void |
removeOnLogonListener(Consumer<SessionID> onLogonListener)
Remove a Consumer of SessionID from onLogon operation.
|
void |
removeOnLogoutListener(Consumer<SessionID> onLogoutListener)
Remove a Consumer of SessionID from onLogout operation.
|
<T extends Message> |
removeToAdminListener(BiConsumer<T,SessionID> toAdminListener)
Remove a BiConsumer of SessionID from toAdmin operation.
|
<T extends Message> |
removeToAppListener(ToAppListener<T> toAppListener)
Remove a listener of toApp operation.
|
void |
toAdmin(Message message,
SessionID sessionId)
This callback provides you with a peek at the administrative messages
that are being sent from your FIX engine to the counter party.
|
void |
toApp(Message message,
SessionID sessionId)
This is a callback for application messages that you are sending to a
counterparty.
|
public void addOnCreateListener(Consumer<SessionID> onCreateListener)
onCreateListener - the Consumer of Session for onCreate operation.public void removeOnCreateListener(Consumer<SessionID> onCreateListener)
onCreateListener - the Consumer of Session for onCreate operation.public void addOnLogonListener(Consumer<SessionID> onLogonListener)
onLogonListener - the Consumer of Session for onLogon operation.public void removeOnLogonListener(Consumer<SessionID> onLogonListener)
onLogonListener - the Consumer of Session for onLogon operation.public void addOnLogoutListener(Consumer<SessionID> onLogoutListener)
onLogoutListener - the Consumer of Session for onLogout operation.public void removeOnLogoutListener(Consumer<SessionID> onLogoutListener)
onLogoutListener - the Consumer of Session for onLogout operation.public void addToAdminListener(BiConsumer<Message,SessionID> toAdminListener)
toAdminListener - the BiConsumer of Session for toAdmin operation.public <T extends Message> void addToAdminListener(Class<T> clazz, BiConsumer<T,SessionID> toAdminListener)
clazz - the specific Message class the listener expectstoAdminListener - the BiConsumer of Session for toAdmin operation.public <T extends Message> void removeToAdminListener(BiConsumer<T,SessionID> toAdminListener)
toAdminListener - the BiConsumer of Session for toAdmin operation.public void addFromAdminListener(FromAdminListener<Message> fromAdminListener)
fromAdminListener - the listener of fromAdmin operation.public <T extends Message> void addFromAdminListener(Class<T> clazz, FromAdminListener<T> fromAdminListener)
clazz - the specific Message class the listener expectsfromAdminListener - the listener of fromAdmin operation.public <T extends Message> void removeFromAdminListener(FromAdminListener<T> fromAdminListener)
fromAdminListener - the listener of fromAdmin operation.public void addToAppListener(ToAppListener<Message> toAppListener)
toAppListener - the listener of fromAdmin operation.public <T extends Message> void addToAppListener(Class<T> clazz, ToAppListener<T> toAppListener)
clazz - the specific Message class the listener expectstoAppListener - the listener of fromAdmin operation.public <T extends Message> void removeToAppListener(ToAppListener<T> toAppListener)
toAppListener - the listener of toApp operation.public void addFromAppListener(FromAppListener<Message> fromAppListener)
fromAppListener - the listener of fromApp operation.public <T extends Message> void addFromAppListener(Class<T> clazz, FromAppListener<T> fromAppListener)
clazz - the specific Message class the listener expectsfromAppListener - the listener of fromApp operation.public <T extends Message> void removeFromAppListener(FromAppListener<T> fromAppListener)
fromAppListener - the listener of fromApp operation.public void onCreate(SessionID sessionId)
ApplicationonCreate in interface Applicationpublic void onLogon(SessionID sessionId)
ApplicationonLogon in interface ApplicationsessionId - QuickFIX session IDpublic void onLogout(SessionID sessionId)
ApplicationonLogout in interface ApplicationsessionId - QuickFIX session IDpublic void toAdmin(Message message, SessionID sessionId)
ApplicationtoAdmin in interface Applicationmessage - QuickFIX messagesessionId - QuickFIX session IDpublic void fromAdmin(Message message, SessionID sessionId) throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon
ApplicationfromAdmin in interface Applicationmessage - QuickFIX messagesessionId - QuickFIX session IDFieldNotFoundIncorrectDataFormatIncorrectTagValueRejectLogon - causes a logon rejectpublic void toApp(Message message, SessionID sessionId) throws DoNotSend
ApplicationtoApp in interface Applicationmessage - QuickFIX messagesessionId - QuickFIX session IDDoNotSend - This exception aborts message transmissionpublic void fromApp(Message message, SessionID sessionId) throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType
ApplicationfromApp in interface Applicationmessage - QuickFIX messagesessionId - QuickFIX session IDFieldNotFoundIncorrectDataFormatIncorrectTagValueUnsupportedMessageTypeCopyright © 2021. All rights reserved.