Package org.objectweb.joram.mom.dest
Class VoidAcquisitionHandler
- java.lang.Object
-
- org.objectweb.joram.mom.dest.VoidAcquisitionHandler
-
- All Implemented Interfaces:
AcquisitionHandler
public class VoidAcquisitionHandler extends Object implements AcquisitionHandler
An acquisition handler that does nothing and can be used, for instance to configure an alias acquisition destination.
-
-
Constructor Summary
Constructors Constructor Description VoidAcquisitionHandler()
-
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.voidretrieve(ReliableTransmitter transmitter)Retrieves one or more message from an external source (e-mail, ftp, ...).voidsetProperties(Properties properties)Configures the handler with the given properties.
-
-
-
Method Detail
-
retrieve
public void retrieve(ReliableTransmitter transmitter) throws Exception
Description copied from interface:AcquisitionHandlerRetrieves one or more message from an external source (e-mail, ftp, ...). Message properties such as priority, expiration or persistence will be set afterwards by theAcquisitionModule.
If the external source is reliable, acknowledgment can be done safely after transmitting the message using the transmitter.- Specified by:
retrievein interfaceAcquisitionHandler- Parameters:
transmitter- a transmitter used to transmit retrieved messages to the MOM reliably.- Throws:
Exception- See Also:
AcquisitionHandler.retrieve(ReliableTransmitter)
-
setProperties
public void setProperties(Properties properties)
Description copied from interface:AcquisitionHandlerConfigures the handler with the given properties. This method is called one time before the first call to retrieve and then when the acquisition destination receives a configuration message.- Specified by:
setPropertiesin interfaceAcquisitionHandler- Parameters:
properties- The new set of properties.- See Also:
AcquisitionHandler.setProperties(Properties)
-
close
public void close()
Description copied from interface:AcquisitionHandlerCloses 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 interfaceAcquisitionHandler- See Also:
AcquisitionHandler.close()
-
-