public abstract class ProduceOnlyProducerImp extends AdaptrisMessageProducerImp
All the request methods throw an UnsupportedOperationException
log
Constructor and Description |
---|
ProduceOnlyProducerImp() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doProduce(AdaptrisMessage msg,
java.lang.String endpoint) |
void |
produce(AdaptrisMessage msg)
Produces the
AdaptrisMessage to the default destination. |
void |
produce(AdaptrisMessage msg,
ProduceDestination destination)
Deprecated.
since 3.11.0
ProduceDestination is deprecated |
AdaptrisMessage |
request(AdaptrisMessage msg)
UnsupportedOperationException is thrown
|
AdaptrisMessage |
request(AdaptrisMessage msg,
long timeout)
UnsupportedOperationException is thrown
|
AdaptrisMessage |
request(AdaptrisMessage msg,
ProduceDestination destination)
Deprecated.
since 3.11.0
ProduceDestination is deprecated |
AdaptrisMessage |
request(AdaptrisMessage msg,
ProduceDestination destination,
long timeout)
Deprecated.
since 3.11.0
ProduceDestination is deprecated |
createName, endpoint
createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactory, withUniqueID
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
createQualifier, isTrackingEndpoint
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)
@Deprecated @Removal(version="4.0.0") public final AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination) throws ProduceException
ProduceDestination
is deprecatedmsg
- the AdaptrisMessage
to producedestination
- the ProduceDestination
to produce toAdaptrisMessage
which is generally the same as
supplied parameterProduceException
- wrapping any underlying Exceptions#request(AdaptrisMessage,ProduceDestination)
@Deprecated @Removal(version="4.0.0") public final AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination, long timeout) throws ProduceException
ProduceDestination
is deprecatedmsg
- 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)
public final void produce(AdaptrisMessage msg) throws ProduceException
AdaptrisMessageSender
AdaptrisMessage
to the default destination.msg
- the @link AdaptrisMessage} to produceProduceException
- wrapping any underlying Exceptions@Deprecated @Removal(version="4.0.0") public final void produce(AdaptrisMessage msg, ProduceDestination destination) throws ProduceException
ProduceDestination
is deprecatedAdaptrisMessageSender
AdaptrisMessage
to the supplied
ProduceDestination
, over-riding any configured destinations.msg
- the AdaptrisMessage
to producedestination
- the ProduceDestination
to produce toProduceException
- wrapping any underlying Exceptionsprotected abstract void doProduce(AdaptrisMessage msg, java.lang.String endpoint) throws ProduceException
ProduceException