public class BasicMessageReceiver<T> extends AbstractMessageReceiver<T>
Modifier | Constructor and Description |
---|---|
protected |
BasicMessageReceiver(MessageReceiverFactory factory) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress() |
long |
getLastMessageId()
Returns the last message id for client ack.
|
int |
getPrefetch() |
void |
onBuild() |
protected T |
pollMicros(long timeoutMicros)
Polls the queue with a timeout.
|
void |
receiveEntry(T value) |
java.lang.String |
toString() |
void |
updateCredit(int credit) |
protected void |
updateFlow(int credit,
long endpointSequence) |
protected void |
wake() |
accepted, add, addAll, clear, contains, containsAll, drainTo, drainTo, element, isEmpty, iterator, modified, offer, offer, peek, poll, poll, put, rejected, released, remainingCapacity, remove, remove, removeAll, retainAll, size, take, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected BasicMessageReceiver(MessageReceiverFactory factory)
public java.lang.String getAddress()
public int getPrefetch()
public long getLastMessageId()
MessageReceiver
getLastMessageId
in interface MessageReceiver<T>
getLastMessageId
in class AbstractMessageReceiver<T>
public void onBuild()
onBuild
in class AbstractMessageReceiver<T>
protected T pollMicros(long timeoutMicros)
AbstractMessageReceiver
pollMicros
in class AbstractMessageReceiver<T>
protected void updateFlow(int credit, long endpointSequence)
public void updateCredit(int credit)
public void receiveEntry(T value)
protected void wake()
public java.lang.String toString()
toString
in class AbstractMessageReceiver<T>