public class ProtonPublisherOptions extends Object
Constructor and Description |
---|
ProtonPublisherOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLinkName() |
int |
getMaxOutstandingCredit() |
int |
hashCode() |
boolean |
isDurable() |
boolean |
isDynamic() |
boolean |
isGlobal() |
boolean |
isShared() |
ProtonPublisherOptions |
setDurable(boolean durable)
Sets whether the link to be used for the subscription should
have 'source' terminus details indicating it is durable, that
is a terminus-expiry-policy of "never" and terminus-durability
of 2/unsettled-state, and that the link should detach rather than
close when cancel is called on the subscription.
|
ProtonPublisherOptions |
setDynamic(boolean dynamic)
Sets whether the link to be used for the subscription should indicate
a 'dynamic' source terminus, requesting the server peer names it with
a dynamic address.
|
ProtonPublisherOptions |
setGlobal(boolean global)
Sets whether the link to be used for a shared subscription should
also have 'source' terminus capability indicating it is 'global',
that is its subscription can be shared across connections
regardless of their container-id values.
|
ProtonPublisherOptions |
setLinkName(String linkName)
Sets the link name to be used for the subscription.
|
ProtonPublisherOptions |
setMaxOutstandingCredit(int maxOutstandingCredit)
Sets the maximum credit the consumer link will leave outstanding at a time.
|
ProtonPublisherOptions |
setShared(boolean shared)
Sets whether the link to be used for the subscription should
have 'source' terminus capability indicating it is 'shared'.
|
public ProtonPublisherOptions setLinkName(String linkName)
linkName
- the name to usepublic String getLinkName()
public ProtonPublisherOptions setDurable(boolean durable)
durable
- true if the subscription should be considered durablepublic boolean isDurable()
public ProtonPublisherOptions setShared(boolean shared)
shared
- true if the subscription should be considered sharedpublic boolean isShared()
public ProtonPublisherOptions setGlobal(boolean global)
global
- true if the subscription should be considered globalpublic boolean isGlobal()
public ProtonPublisherOptions setDynamic(boolean dynamic)
ProtonPublisher.getRemoteAddress()
(or inspecting the remote
source details directly) when the onSubscribe() handler is fired.dynamic
- true if the link should request a dynamic source addresspublic boolean isDynamic()
public ProtonPublisherOptions setMaxOutstandingCredit(int maxOutstandingCredit)
maxOutstandingCredit
- the limit on outstanding consumer creditpublic int getMaxOutstandingCredit()
Copyright © 2020 Eclipse. All rights reserved.