public abstract class ProduceOnlyProducerImp extends AdaptrisMessageProducerImp
All the request methods throw an UnsupportedOperationException
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
ProduceOnlyProducerImp() |
Modifier and Type | Method and Description |
---|---|
void |
produce(AdaptrisMessage msg)
Produces the
AdaptrisMessage to the default destination. |
AdaptrisMessage |
request(AdaptrisMessage msg)
UnsupportedOperationException is thrown
|
AdaptrisMessage |
request(AdaptrisMessage msg,
long timeout)
UnsupportedOperationException is thrown
|
AdaptrisMessage |
request(AdaptrisMessage msg,
ProduceDestination destination)
UnsupportedOperationException is thrown
|
AdaptrisMessage |
request(AdaptrisMessage msg,
ProduceDestination destination,
long timeout)
UnsupportedOperationException is thrown
|
getDestination, setDestination
createName, createQualifier, decode, encode, getEncoder, getIsConfirmation, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isConfirmation, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsConfirmation, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactory
getUniqueId
close, init, start, stop
prepare
createName, createQualifier, isConfirmation, isTrackingEndpoint
produce
public void produce(AdaptrisMessage msg) throws ProduceException
AdaptrisMessageSender
AdaptrisMessage
to the default destination.msg
- the @link AdaptrisMessage} to produceProduceException
- wrapping any underlying Exceptions#produce(AdaptrisMessage, ProduceDestination)
public final AdaptrisMessage request(AdaptrisMessage msg) throws ProduceException
msg
- the AdaptrisMessage
to produceAdaptrisMessage
which is generally the same as supplied parameterProduceException
- wrapping any underlying ExceptionsAdaptrisMessageProducer.request(AdaptrisMessage)
public final AdaptrisMessage request(AdaptrisMessage msg, long timeout) throws ProduceException
msg
- the AdaptrisMessage
to producetimeout
- the time to wait for a reply in millisecondsAdaptrisMessage
which is generally the same as supplied parameterProduceException
- wrapping any underlying ExceptionsAdaptrisMessageProducer.request(AdaptrisMessage, long)
public final AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination) throws ProduceException
msg
- the AdaptrisMessage
to producedestination
- the ProduceDestination
to produce toAdaptrisMessage
which is generally the same as supplied parameterProduceException
- wrapping any underlying Exceptions#request(AdaptrisMessage,ProduceDestination)
public final AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination, long timeout) throws ProduceException
msg
- the AdaptrisMessage
to producedestination
- the ProduceDestination
to produce totimeout
- the time to wait for a reply in millisecondsAdaptrisMessage
which is generally the same as supplied parameterProduceException
- wrapping any underlying Exceptions#request(AdaptrisMessage,
ProduceDestination, long)