public final class MessageReceiver extends ClientEntity implements IAmqpReceiver
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<MessageReceiver> |
create(MessagingFactory factory,
String name,
String recvPath,
int prefetchCount,
IReceiverSettingsProvider settingsProvider) |
ErrorContext |
getContext() |
protected Exception |
getLastKnownError() |
int |
getPrefetchCount() |
String |
getReceivePath() |
Duration |
getReceiveTimeout() |
protected CompletableFuture<Void> |
onClose() |
void |
onClose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition) |
void |
onError(Exception exception) |
void |
onOpenComplete(Exception exception) |
void |
onReceiveComplete(org.apache.qpid.proton.engine.Delivery delivery) |
CompletableFuture<Collection<org.apache.qpid.proton.message.Message>> |
receive(int maxMessageCount) |
void |
setPrefetchCount(int value) |
void |
setReceiveTimeout(Duration value) |
close, closeSync, getClientId, setClosed, throwIfClosedpublic static CompletableFuture<MessageReceiver> create(MessagingFactory factory, String name, String recvPath, int prefetchCount, IReceiverSettingsProvider settingsProvider)
public String getReceivePath()
public int getPrefetchCount()
public void setPrefetchCount(int value)
throws ServiceBusException
ServiceBusExceptionpublic Duration getReceiveTimeout()
public void setReceiveTimeout(Duration value)
public CompletableFuture<Collection<org.apache.qpid.proton.message.Message>> receive(int maxMessageCount)
public void onOpenComplete(Exception exception)
onOpenComplete in interface IAmqpLinkexception - completionException=null if open is successfulpublic void onReceiveComplete(org.apache.qpid.proton.engine.Delivery delivery)
onReceiveComplete in interface IAmqpReceiverpublic void onClose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
public ErrorContext getContext()
protected CompletableFuture<Void> onClose()
onClose in class ClientEntityprotected Exception getLastKnownError()
getLastKnownError in class ClientEntityCopyright © 2017. All rights reserved.