public abstract class AbstractMessageSender<T> extends AbstractQueueSender<T> implements MessageSender<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractMessageSender(MessageSenderFactory factory) |
Modifier and Type | Method and Description |
---|---|
MessagePropertiesFactory<T> |
createMessageFactory() |
MessageSettleListener |
getSettleListener() |
SettleMode |
getSettleMode()
Auto-settle sends messages without waiting for confirmation
from the broker.
|
int |
getUnsettledCount() |
protected abstract boolean |
offerMicros(MessagePropertiesFactory<T> factory,
T value,
long timeoutMicros)
Offers a value to the queue.
|
java.lang.String |
toString() |
add, addAll, clear, contains, containsAll, drainTo, drainTo, element, getMessageFactory, isEmpty, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, remove, removeAll, retainAll, size, take, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, getLastMessageId
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
protected AbstractMessageSender(MessageSenderFactory factory)
public final SettleMode getSettleMode()
MessageSender
getSettleMode
in interface MessageSender<T>
public final MessageSettleListener getSettleListener()
getSettleListener
in interface MessageSender<T>
public MessagePropertiesFactory<T> createMessageFactory()
createMessageFactory
in interface MessageSender<T>
public int getUnsettledCount()
getUnsettledCount
in interface MessageSender<T>
protected abstract boolean offerMicros(MessagePropertiesFactory<T> factory, T value, long timeoutMicros)
offerMicros
in class AbstractQueueSender<T>
public java.lang.String toString()
toString
in class AbstractQueueSender<T>