Package com.adaptris.core
Interface AdaptrisMessageProducer
-
- All Superinterfaces:
AdaptrisComponent,AdaptrisMessageSender,AdaptrisMessageWorker,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator
- All Known Implementing Classes:
AdaptrisMessageProducerImp,DefinedJmsProducer,FsProducer,FtpProducer,HttpProducer,JdbcStoredProcedureProducer,JmsAsyncProducer,JmsProducer,JmsProducerImpl,LargeFsProducer,NullMessageProducer,PasProducer,ProduceOnlyProducerImp,PtpProducer,RelaxedFtpProducer,RequestReplyProducerBase,RequestReplyProducerImp,ResponseProducerImpl,StandardHttpProducer,StandardResponseProducer
public interface AdaptrisMessageProducer extends AdaptrisMessageWorker, AdaptrisMessageSender
Implementations of
AdaptrisMessageProducerproduce messages to a destination (such as a JMS Queue or file system directory).- See Also:
AdaptrisMessageSender
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AdaptrisMessagerequest(AdaptrisMessage msg)Produce theAdaptrisMessageto the configured destination and blocks indefinitely for a reply.AdaptrisMessagerequest(AdaptrisMessage msg, long timeout)Produces theAdaptrisMessageand blocks for the specified timeout for a reply.-
Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueId
-
Methods inherited from interface com.adaptris.core.AdaptrisMessageSender
produce
-
Methods inherited from interface com.adaptris.core.AdaptrisMessageWorker
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactory
-
Methods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stop
-
Methods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepare
-
Methods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
-
-
-
-
Method Detail
-
request
AdaptrisMessage request(AdaptrisMessage msg) throws ProduceException
Produce theAdaptrisMessageto the configured destination and blocks indefinitely for a reply.- Parameters:
msg- theAdaptrisMessageto produce- Returns:
- a reply
AdaptrisMessagewhich is generally the same as supplied parameter - Throws:
ProduceException- wrapping any underlying Exceptions
-
request
AdaptrisMessage request(AdaptrisMessage msg, long timeout) throws ProduceException
Produces theAdaptrisMessageand blocks for the specified timeout for a reply.- Parameters:
msg- theAdaptrisMessageto producetimeout- the time to wait for a reply in milliseconds- Returns:
- a reply
AdaptrisMessagewhich is generally the same as supplied parameter - Throws:
ProduceException- wrapping any underlying Exceptions
-
-