Package org.objectweb.joram.mom.dest
Class NotificationDistributionHandler
- java.lang.Object
-
- org.objectweb.joram.mom.dest.NotificationDistributionHandler
-
- All Implemented Interfaces:
DistributionHandler
public class NotificationDistributionHandler extends Object implements DistributionHandler
A distribution handler that distributed message to a given destination using an A3 acquisition notification.- Author:
- willy malvault (willy.malvault@scalagent.fr)
- See Also:
AcquisitionNot
-
-
Field Summary
Fields Modifier and Type Field Description private static Loggerloggerprivate AgentIdremoteDestinationIDthe queue to send the notification to
-
Constructor Summary
Constructors Constructor Description NotificationDistributionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes this handler and releases any system resources associated to it.voiddistribute(Message message)Distributes the given message outside of the JORAM server.voidinit(Properties properties, boolean firstTime)Configures the handler with the given properties.
-
-
-
Method Detail
-
init
public void init(Properties properties, boolean firstTime)
Description copied from interface:DistributionHandlerConfigures the handler with the given properties.- Specified by:
initin interfaceDistributionHandler- Parameters:
properties- The initial set of properties.
-
distribute
public void distribute(Message message) throws Exception
Description copied from interface:DistributionHandlerDistributes the given message outside of the JORAM server.- Specified by:
distributein interfaceDistributionHandler- Parameters:
message- the message to distribute- Throws:
Exception- if the message could not be distributed. The message will be forwarded to a DMQ, if any.
-
close
public void close()
Description copied from interface:DistributionHandlerCloses this handler and releases any system resources associated to it. There will be no subsequent call to this handler after it has been closed.- Specified by:
closein interfaceDistributionHandler
-
-