public interface AcquisitionHandler
AcquisitionHandler
interface is made to work with an acquisition
queue or topic via an AcquisitionModule
. Its purpose is to retrieve
messages from non-JMS sources (e-mail, ftp, JMX, ...) in order to inject them
into the JMS world. The retrieve(ReliableTransmitter)
method is
called regularly depending on how the AcquisitionModule
is
configured.
This interface is made for explicit acquisition. For implicit acquisition
such as message listeners, you need to extend AcquisitionDaemon
instead.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this handler and releases any system resources associated to it.
|
void |
retrieve(ReliableTransmitter transmitter)
Retrieves one or more message from an external source (e-mail, ftp, ...).
|
void |
setProperties(Properties properties)
Configures the handler with the given properties.
|
void retrieve(ReliableTransmitter transmitter) throws Exception
AcquisitionModule
.transmitter
- a transmitter used to transmit retrieved messages to the MOM
reliably.Exception
void setProperties(Properties properties)
properties
- The new set of properties.void close()
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.