Class FHIRNotificationNATSPublisher
- java.lang.Object
-
- com.ibm.fhir.notifications.nats.impl.FHIRNotificationNATSPublisher
-
- All Implemented Interfaces:
FHIRNotificationSubscriber
public class FHIRNotificationNATSPublisher extends Object implements FHIRNotificationSubscriber
This class implements the FHIR server notification service via a NATS channel.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFHIRNotificationNATSPublisher()FHIRNotificationNATSPublisher(String clusterId, String channelName, String clientId, String servers, Properties tlsProps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidnotify(FHIRNotificationEvent event)Publishes an event to NATS.voidshutdown()Performs any necessary "shutdown" logic to disconnect from the channel.
-
-
-
Constructor Detail
-
FHIRNotificationNATSPublisher
protected FHIRNotificationNATSPublisher()
-
FHIRNotificationNATSPublisher
public FHIRNotificationNATSPublisher(String clusterId, String channelName, String clientId, String servers, Properties tlsProps)
-
-
Method Detail
-
shutdown
public void shutdown()
Performs any necessary "shutdown" logic to disconnect from the channel.
-
notify
public void notify(FHIRNotificationEvent event) throws FHIRNotificationException
Publishes an event to NATS.- Specified by:
notifyin interfaceFHIRNotificationSubscriber- Throws:
FHIRNotificationException
-
-