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 java.lang.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
Constructors Constructor Description TransformerNotificationManager(NotificationActionMapper notificationActionMapper)
Create a TransformerNotificationManager instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
onActionNotification(ActionNotificationDetails details)
Send a successful notificationvoid
onDeleteNotification(DeleteNotificationDetails details)
Send an notification on delete actionvoid
onFailNotification(FailNotificationDetails details)
Send an notification on failed actionvoid
onFillNotification(FillNotificationDetails details)
Send an notification on fill action
-
-
-
Constructor Detail
-
TransformerNotificationManager
public TransformerNotificationManager(NotificationActionMapper notificationActionMapper)
Create a TransformerNotificationManager instance- Parameters:
notificationActionMapper
- NotificationActionMapper
-
-
Method Detail
-
initialise
public void initialise(NotificationManager.Context context) throws java.lang.Exception
Description copied from interface:NotificationManager
Initialise notification components with the given context- Specified by:
initialise
in interfaceNotificationManager
- Parameters:
context
- Context- Throws:
java.lang.Exception
-
onActionNotification
public void onActionNotification(ActionNotificationDetails details)
Description copied from interface:NotificationManager
Send a successful notification- Specified by:
onActionNotification
in interfaceNotificationManager
- Parameters:
details
- - ActionNotificationDetails
-
onDeleteNotification
public void onDeleteNotification(DeleteNotificationDetails details)
Description copied from interface:NotificationManager
Send an notification on delete action- Specified by:
onDeleteNotification
in interfaceNotificationManager
- Parameters:
details
- DeleteNotificationDetails
-
onFailNotification
public void onFailNotification(FailNotificationDetails details)
Description copied from interface:NotificationManager
Send an notification on failed action- Specified by:
onFailNotification
in interfaceNotificationManager
- Parameters:
details
- FailNotificationDetails
-
onFillNotification
public void onFillNotification(FillNotificationDetails details)
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
-
-