Class TransformerNotificationManager
java.lang.Object
com.caplin.motif.fx.ret.orders.extension.notification.transformer.TransformerNotificationManager
- All Implemented Interfaces:
com.caplin.datasource.notification.NotificationApplicationListener
,NotificationManager
public class TransformerNotificationManager
extends Object
implements NotificationManager, com.caplin.datasource.notification.NotificationApplicationListener
Initialises notification components.
The TransformerNotificationManager is using the transformer persistence
and NotificationJava API to handle notifications.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.orders.notification.NotificationManager
NotificationManager.Context
-
Constructor Summary
ConstructorDescriptionTransformerNotificationManager
(NotificationActionMapper notificationActionMapper) Create a TransformerNotificationManager instance -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialise
(NotificationManager.Context context) Initialise notification components with the given contextvoid
notificationChannelClosed
(com.caplin.datasource.notification.NotificationChannel channel) void
notificationChannelOpened
(com.caplin.datasource.notification.NotificationChannel notificationChannel) void
Send a successful notificationvoid
Send an notification on delete actionvoid
Send an notification on failed actionvoid
Send an notification on fill action
-
Constructor Details
-
TransformerNotificationManager
Create a TransformerNotificationManager instance- Parameters:
notificationActionMapper
- NotificationActionMapper
-
-
Method Details
-
initialise
Description copied from interface:NotificationManager
Initialise notification components with the given context- Specified by:
initialise
in interfaceNotificationManager
- Parameters:
context
- Context- Throws:
Exception
-
onActionNotification
Description copied from interface:NotificationManager
Send a successful notification- Specified by:
onActionNotification
in interfaceNotificationManager
- Parameters:
details
- - ActionNotificationDetails
-
onDeleteNotification
Description copied from interface:NotificationManager
Send an notification on delete action- Specified by:
onDeleteNotification
in interfaceNotificationManager
- Parameters:
details
- DeleteNotificationDetails
-
onFailNotification
Description copied from interface:NotificationManager
Send an notification on failed action- Specified by:
onFailNotification
in interfaceNotificationManager
- Parameters:
details
- FailNotificationDetails
-
onFillNotification
Description copied from interface:NotificationManager
Send an notification on fill action- Specified by:
onFillNotification
in interfaceNotificationManager
- Parameters:
details
- FillNotificationDetails
-
notificationChannelOpened
public void notificationChannelOpened(com.caplin.datasource.notification.NotificationChannel notificationChannel) - Specified by:
notificationChannelOpened
in interfacecom.caplin.datasource.notification.NotificationApplicationListener
-
notificationChannelClosed
public void notificationChannelClosed(com.caplin.datasource.notification.NotificationChannel channel) - Specified by:
notificationChannelClosed
in interfacecom.caplin.datasource.notification.NotificationApplicationListener
-