Package com.adaptris.core
Interface AdaptrisMessageProducer
- All Superinterfaces:
AdaptrisComponent,AdaptrisMessageSender,AdaptrisMessageWorker,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator
- All Known Implementing Classes:
AdaptrisMessageProducerImp,ChannelUnavailableConnectionErrorHandlingProducer,ConnectionErrorHandlingProducer,DefinedJmsProducer,FsProducer,FtpProducer,HttpProducer,JdbcStoredProcedureProducer,JmsAsyncProducer,JmsProducer,JmsProducerImpl,LargeFsProducer,NullMessageProducer,PasProducer,ProduceOnlyProducerImp,PtpProducer,RelaxedFtpProducer,RequestReplyProducerBase,RequestReplyProducerImp,ResponseProducerImpl,StandardHttpProducer,StandardResponseProducer
Implementations of AdaptrisMessageProducer produce messages to a destination (such as a JMS Queue or file system
directory).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrequest(AdaptrisMessage msg) Produce theAdaptrisMessageto the configured destination and blocks indefinitely for a reply.request(AdaptrisMessage msg, long timeout) Produces theAdaptrisMessageand blocks for the specified timeout for a reply.Methods inherited from interface com.adaptris.core.AdaptrisComponent
getUniqueIdMethods inherited from interface com.adaptris.core.AdaptrisMessageSender
produceMethods inherited from interface com.adaptris.core.AdaptrisMessageWorker
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactoryMethods inherited from interface com.adaptris.core.ComponentLifecycle
close, init, start, stopMethods inherited from interface com.adaptris.core.ComponentLifecycleExtension
prepareMethods inherited from interface com.adaptris.core.MessageEventGenerator
createName, createQualifier, isTrackingEndpoint
-
Method Details
-
request
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
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
-