public class NotificationDistributionHandler extends Object implements DistributionHandler
AcquisitionNot
Modifier and Type | Field and Description |
---|---|
static org.objectweb.util.monolog.api.Logger |
logger |
private AgentId |
remoteDestinationID
the queue to send the notification to
|
Constructor and Description |
---|
NotificationDistributionHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this handler and releases any system resources associated to it.
|
void |
distribute(Message message)
Distributes the given message outside of the JORAM server.
|
void |
init(Properties properties,
boolean firstTime)
Configures the handler with the given properties.
|
public static org.objectweb.util.monolog.api.Logger logger
private AgentId remoteDestinationID
public void init(Properties properties, boolean firstTime)
DistributionHandler
init
in interface DistributionHandler
properties
- The initial set of properties.DistributionHandler#init(Properties)
public void distribute(Message message) throws Exception
DistributionHandler
distribute
in interface DistributionHandler
message
- the message to distributeException
- if the message could not be distributed. The message will
be forwarded to a DMQ, if any.DistributionHandler.distribute(Message)
public void close()
DistributionHandler
close
in interface DistributionHandler
AcquisitionHandler.close()
Copyright © 2015 ScalAgent D.T.. All Rights Reserved.