public final class ChannelUriStringBuilder extends Object
Publication or Subscription.| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_PREFIX
Can be used when the likes of session-id wants to reference another entity such as a tagged publication.
|
| Constructor and Description |
|---|
ChannelUriStringBuilder() |
| Modifier and Type | Method and Description |
|---|---|
String |
alias()
Get the alias present in the URI.
|
ChannelUriStringBuilder |
alias(ChannelUri channelUri)
Set the alias to be value which is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
alias(String alias)
Set the alias for a URI.
|
String |
build()
Build a channel URI String for the given parameters.
|
ChannelUriStringBuilder |
clear()
Clear out all the values thus setting back to the initial state.
|
String |
congestionControl()
Get the congestion control algorithm to be used on a stream.
|
ChannelUriStringBuilder |
congestionControl(ChannelUri channelUri)
Set the congestion control to be value which is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
congestionControl(String congestionControl)
Set the congestion control algorithm to be used on a stream.
|
String |
controlEndpoint()
Get the control address:port pair for dynamically joining a multi-destination-cast publication.
|
ChannelUriStringBuilder |
controlEndpoint(ChannelUri channelUri)
Set the control endpoint value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
controlEndpoint(String controlEndpoint)
Set the control address:port pair for dynamically joining a multi-destination-cast publication.
|
String |
controlMode()
Get the control mode for multi-destination-cast.
|
ChannelUriStringBuilder |
controlMode(ChannelUri channelUri)
Set the control mode to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
controlMode(String controlMode)
Set the control mode for multi-destination-cast.
|
String |
endpoint()
Get the endpoint address:port pairing for the channel.
|
ChannelUriStringBuilder |
endpoint(ChannelUri channelUri)
Set the endpoint value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
endpoint(String endpoint)
Set the endpoint address:port pairing for the channel.
|
Boolean |
eos()
Should an EOS flag be sent on the media or not.
|
ChannelUriStringBuilder |
eos(Boolean eos)
Set to indicate if an EOS should be sent on the media or not.
|
ChannelUriStringBuilder |
eos(ChannelUri channelUri)
Set the eos value to be what is in the
ChannelUri which may be null. |
String |
flowControl()
Get the flow control strategy to be used on a stream.
|
ChannelUriStringBuilder |
flowControl(ChannelUri channelUri)
Set the flow control to be value which is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
flowControl(String flowControl)
Set the flow control strategy to be used on a stream.
|
Boolean |
group()
Is the receiver likely to be part of a group.
|
ChannelUriStringBuilder |
group(Boolean group)
Is the receiver likely to be part of a group.
|
ChannelUriStringBuilder |
group(ChannelUri channelUri)
Set the group value to be what is in the
ChannelUri which may be null. |
Long |
groupTag()
Get the group tag (gtag) to be sent in SMs (Status Messages).
|
ChannelUriStringBuilder |
groupTag(ChannelUri channelUri)
Set the group tag (gtag) to be the value which is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
groupTag(Long groupTag)
Set the group tag (gtag) to be sent in SMs (Status Messages).
|
ChannelUriStringBuilder |
initialPosition(long position,
int initialTermId,
int termLength)
Initialise a channel for restarting a publication at a given position.
|
Integer |
initialTermId()
the initial term id at which a publication will start.
|
ChannelUriStringBuilder |
initialTermId(ChannelUri channelUri)
Set the initialTermId value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
initialTermId(Integer initialTermId)
Set the initial term id at which a publication will start.
|
boolean |
isSessionIdTagged()
Is the value for
sessionId() a tagged. |
ChannelUriStringBuilder |
isSessionIdTagged(boolean isSessionIdTagged)
Toggle the value for
sessionId() being tagged or not. |
Long |
linger()
Get the time a network publication will linger in nanoseconds after being drained.
|
ChannelUriStringBuilder |
linger(ChannelUri channelUri)
Set the linger value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
linger(Long lingerNs)
Set the time a network publication will linger in nanoseconds after being drained.
|
String |
media()
The media over which the channel transmits.
|
ChannelUriStringBuilder |
media(ChannelUri channelUri)
Set the endpoint value to be what is in the
ChannelUri. |
ChannelUriStringBuilder |
media(String media)
Set the media for this channel.
|
ChannelUriStringBuilder |
minFlowControl(Integer minGroupSize,
String timeout)
Set min flow control settings to be used on stream.
|
Integer |
mtu()
Get the maximum transmission unit (MTU) including Aeron header for a datagram payload.
|
ChannelUriStringBuilder |
mtu(ChannelUri channelUri)
Set the mtu value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
mtu(Integer mtu)
Set the maximum transmission unit (MTU) including Aeron header for a datagram payload.
|
String |
networkInterface()
Get the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.
|
ChannelUriStringBuilder |
networkInterface(ChannelUri channelUri)
Set the network interface value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
networkInterface(String networkInterface)
Set the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.
|
String |
prefix()
Get the prefix for the additional action to be taken on the request.
|
ChannelUriStringBuilder |
prefix(ChannelUri channelUri)
Set the prefix value to be what is in the
ChannelUri. |
ChannelUriStringBuilder |
prefix(String prefix)
Set the prefix for taking an addition action such as spying on an outgoing publication with "aeron-spy".
|
Boolean |
rejoin()
Get the subscription semantics for if a stream should be rejoined after going unavailable.
|
ChannelUriStringBuilder |
rejoin(Boolean rejoin)
Set the subscription semantics for if a stream should be rejoined after going unavailable.
|
ChannelUriStringBuilder |
rejoin(ChannelUri channelUri)
Set the rejoin value to be what is in the
ChannelUri which may be null. |
Boolean |
reliable()
Get the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.
|
ChannelUriStringBuilder |
reliable(Boolean isReliable)
Set the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.
|
ChannelUriStringBuilder |
reliable(ChannelUri channelUri)
Set the reliable value to be what is in the
ChannelUri which may be null. |
Integer |
sessionId()
Get the session id for a publication or restricted subscription.
|
ChannelUriStringBuilder |
sessionId(ChannelUri channelUri)
Set the sessionId value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
sessionId(Integer sessionId)
Set the session id for a publication or restricted subscription.
|
Boolean |
sparse()
Should term log buffer be sparse on disk or not.
|
ChannelUriStringBuilder |
sparse(Boolean isSparse)
Set to indicate if a term log buffer should be sparse on disk or not.
|
ChannelUriStringBuilder |
sparse(ChannelUri channelUri)
Set the sparse value to be what is in the
ChannelUri which may be null. |
Boolean |
spiesSimulateConnection()
Get the publication semantics for whether the presence of spy subscriptions simulate a connection.
|
ChannelUriStringBuilder |
spiesSimulateConnection(Boolean spiesSimulateConnection)
Set the publication semantics for whether the presence of spy subscriptions simulate a connection.
|
ChannelUriStringBuilder |
spiesSimulateConnection(ChannelUri channelUri)
Set the publication semantics for whether the presence of spy subscriptions simulate a connection to be what is
in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
taggedFlowControl(Long groupTag,
Integer minGroupSize,
String timeout)
Set tagged flow control settings to be used on a stream.
|
String |
tags()
Get the tags for a channel used by a publication or subscription.
|
ChannelUriStringBuilder |
tags(ChannelUri channelUri)
Set the tags to be value which is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
tags(String tags)
Set the tags for a channel used by a publication or subscription.
|
Integer |
termId()
Get the current term id at which a publication will start.
|
ChannelUriStringBuilder |
termId(ChannelUri channelUri)
Set the termId value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
termId(Integer termId)
Set the current term id at which a publication will start.
|
Integer |
termLength()
Get the length of buffer used for each term of the log.
|
ChannelUriStringBuilder |
termLength(ChannelUri channelUri)
Set the termLength value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
termLength(Integer termLength)
Set the length of buffer used for each term of the log.
|
Integer |
termOffset()
Get the offset within a term at which a publication will start.
|
ChannelUriStringBuilder |
termOffset(ChannelUri channelUri)
Set the termOffset value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
termOffset(Integer termOffset)
Set the offset within a term at which a publication will start.
|
Boolean |
tether()
Should the subscription channel be tethered or not for local flow control.
|
ChannelUriStringBuilder |
tether(Boolean tether)
Should the subscription channel be tethered or not for local flow control.
|
ChannelUriStringBuilder |
tether(ChannelUri channelUri)
Set the tether value to be what is in the
ChannelUri which may be null. |
String |
toString() |
Integer |
ttl()
Get the Time To Live (TTL) for a multicast datagram.
|
ChannelUriStringBuilder |
ttl(ChannelUri channelUri)
Set the ttl value to be what is in the
ChannelUri which may be null. |
ChannelUriStringBuilder |
ttl(Integer ttl)
Set the Time To Live (TTL) for a multicast datagram.
|
ChannelUriStringBuilder |
validate()
Validates that the collection of set parameters are valid together.
|
public static final String TAG_PREFIX
For example session-id=tag:777 where the publication uses tags=777.
public ChannelUriStringBuilder clear()
public ChannelUriStringBuilder validate()
IllegalStateException - if the combination of params is invalid.public ChannelUriStringBuilder prefix(String prefix)
prefix - to be applied to the URI before the the scheme.ChannelUri.SPY_QUALIFIERpublic ChannelUriStringBuilder prefix(ChannelUri channelUri)
ChannelUri.channelUri - to read the value from.ChannelUri.SPY_QUALIFIERpublic String prefix()
public ChannelUriStringBuilder media(String media)
media - for this channel.public ChannelUriStringBuilder media(ChannelUri channelUri)
ChannelUri.channelUri - to read the value from.public String media()
public ChannelUriStringBuilder endpoint(String endpoint)
endpoint - address and port for the channel.CommonContext.ENDPOINT_PARAM_NAMEpublic ChannelUriStringBuilder endpoint(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.ENDPOINT_PARAM_NAMEpublic String endpoint()
CommonContext.ENDPOINT_PARAM_NAMEpublic ChannelUriStringBuilder networkInterface(String networkInterface)
networkInterface - for routing traffic.CommonContext.INTERFACE_PARAM_NAMEpublic ChannelUriStringBuilder networkInterface(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.INTERFACE_PARAM_NAMEpublic String networkInterface()
CommonContext.INTERFACE_PARAM_NAMEpublic ChannelUriStringBuilder controlEndpoint(String controlEndpoint)
controlEndpoint - for joining a MDC control socket.CommonContext.MDC_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder controlEndpoint(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.MDC_CONTROL_PARAM_NAMEpublic String controlEndpoint()
CommonContext.MDC_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder controlMode(String controlMode)
controlMode - for taking control of MDC.Publication.addDestination(String),
Publication.removeDestination(String),
CommonContext.MDC_CONTROL_MODE_PARAM_NAME,
CommonContext.MDC_CONTROL_MODE_MANUAL,
CommonContext.MDC_CONTROL_MODE_DYNAMICpublic ChannelUriStringBuilder controlMode(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.MDC_CONTROL_MODE_PARAM_NAMEpublic String controlMode()
CommonContext.MDC_CONTROL_MODE_PARAM_NAME,
CommonContext.MDC_CONTROL_MODE_MANUAL,
CommonContext.MDC_CONTROL_MODE_DYNAMICpublic ChannelUriStringBuilder reliable(Boolean isReliable)
isReliable - false if loss can be be gap filled.CommonContext.RELIABLE_STREAM_PARAM_NAMEpublic ChannelUriStringBuilder reliable(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.RELIABLE_STREAM_PARAM_NAMEpublic Boolean reliable()
CommonContext.RELIABLE_STREAM_PARAM_NAMEpublic ChannelUriStringBuilder ttl(Integer ttl)
ttl - value for a multicast datagram.CommonContext.TTL_PARAM_NAMEpublic ChannelUriStringBuilder ttl(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TTL_PARAM_NAMEpublic Integer ttl()
CommonContext.TTL_PARAM_NAMEpublic ChannelUriStringBuilder mtu(Integer mtu)
mtu - the maximum transmission unit including Aeron header for a datagram payload.CommonContext.MTU_LENGTH_PARAM_NAMEpublic ChannelUriStringBuilder mtu(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.MTU_LENGTH_PARAM_NAMEpublic Integer mtu()
CommonContext.MTU_LENGTH_PARAM_NAMEpublic ChannelUriStringBuilder termLength(Integer termLength)
termLength - of the buffer used for each term of the log.CommonContext.TERM_LENGTH_PARAM_NAMEpublic ChannelUriStringBuilder termLength(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TERM_LENGTH_PARAM_NAMEpublic Integer termLength()
CommonContext.TERM_LENGTH_PARAM_NAMEpublic ChannelUriStringBuilder initialTermId(Integer initialTermId)
initialTermId - the initial term id at which a publication will start.CommonContext.INITIAL_TERM_ID_PARAM_NAMEpublic ChannelUriStringBuilder initialTermId(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.INITIAL_TERM_ID_PARAM_NAMEpublic Integer initialTermId()
CommonContext.INITIAL_TERM_ID_PARAM_NAMEpublic ChannelUriStringBuilder termId(Integer termId)
termId - at which a publication will start.CommonContext.TERM_ID_PARAM_NAMEpublic ChannelUriStringBuilder termId(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TERM_ID_PARAM_NAMEpublic Integer termId()
CommonContext.TERM_ID_PARAM_NAMEpublic ChannelUriStringBuilder termOffset(Integer termOffset)
termOffset - within a term at which a publication will start.CommonContext.TERM_OFFSET_PARAM_NAMEpublic ChannelUriStringBuilder termOffset(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TERM_OFFSET_PARAM_NAMEpublic Integer termOffset()
CommonContext.TERM_OFFSET_PARAM_NAMEpublic ChannelUriStringBuilder sessionId(Integer sessionId)
sessionId - for the publication or a restricted subscription.CommonContext.SESSION_ID_PARAM_NAMEpublic ChannelUriStringBuilder sessionId(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.SESSION_ID_PARAM_NAMEpublic Integer sessionId()
CommonContext.SESSION_ID_PARAM_NAMEpublic ChannelUriStringBuilder linger(Long lingerNs)
lingerNs - time for the publication after it is drained.CommonContext.LINGER_PARAM_NAMEpublic ChannelUriStringBuilder linger(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.LINGER_PARAM_NAMEpublic Long linger()
CommonContext.LINGER_PARAM_NAMEpublic ChannelUriStringBuilder sparse(Boolean isSparse)
isSparse - true if the term buffer log is sparse on disk.CommonContext.SPARSE_PARAM_NAMEpublic ChannelUriStringBuilder sparse(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.SPARSE_PARAM_NAMEpublic Boolean sparse()
CommonContext.SPARSE_PARAM_NAMEpublic ChannelUriStringBuilder eos(Boolean eos)
eos - true if the EOS should be sent.CommonContext.EOS_PARAM_NAMEpublic ChannelUriStringBuilder eos(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.EOS_PARAM_NAMEpublic Boolean eos()
CommonContext.EOS_PARAM_NAMEpublic ChannelUriStringBuilder tether(Boolean tether)
tether - value to be set for the tether param.CommonContext.TETHER_PARAM_NAMEpublic ChannelUriStringBuilder tether(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TETHER_PARAM_NAMEpublic Boolean tether()
CommonContext.TETHER_PARAM_NAMEpublic ChannelUriStringBuilder group(Boolean group)
group - value to be set for the group param.CommonContext.GROUP_PARAM_NAME,
controlMode(),
controlEndpoint()public ChannelUriStringBuilder group(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.GROUP_PARAM_NAMEpublic Boolean group()
CommonContext.GROUP_PARAM_NAME,
controlMode(),
controlEndpoint()public ChannelUriStringBuilder tags(String tags)
tags - for the channel, publication or subscription.CommonContext.TAGS_PARAM_NAME,
CommonContext.TAG_PREFIXpublic ChannelUriStringBuilder tags(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TAGS_PARAM_NAMEpublic String tags()
CommonContext.TAGS_PARAM_NAME,
CommonContext.TAG_PREFIXpublic ChannelUriStringBuilder isSessionIdTagged(boolean isSessionIdTagged)
sessionId() being tagged or not.isSessionIdTagged - for session idCommonContext.TAGS_PARAM_NAME,
CommonContext.TAG_PREFIXpublic boolean isSessionIdTagged()
sessionId() a tagged.sessionId() a tag reference or not.CommonContext.TAGS_PARAM_NAME,
CommonContext.TAG_PREFIXpublic ChannelUriStringBuilder alias(String alias)
alias - for the URI.CommonContext.ALIAS_PARAM_NAMEpublic ChannelUriStringBuilder alias(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.TAGS_PARAM_NAMEpublic String alias()
CommonContext.ALIAS_PARAM_NAMEpublic ChannelUriStringBuilder congestionControl(String congestionControl)
congestionControl - for the URI.CommonContext.CONGESTION_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder congestionControl(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.CONGESTION_CONTROL_PARAM_NAMEpublic String congestionControl()
CommonContext.CONGESTION_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder flowControl(String flowControl)
flowControl - for the URI.CommonContext.FLOW_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder taggedFlowControl(Long groupTag, Integer minGroupSize, String timeout)
groupTag - receiver tag for this stream.minGroupSize - group size required to allow publications for this channel to be move to connected status.timeout - timeout receivers, default is ns, but allows suffixing of time units (e.g. 5s).public ChannelUriStringBuilder minFlowControl(Integer minGroupSize, String timeout)
minGroupSize - group size required to allow publications for this stream to be move to connected status.timeout - timeout receivers, default is ns, but allows suffixing of time units (e.g. 5s).public ChannelUriStringBuilder flowControl(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.FLOW_CONTROL_PARAM_NAMEpublic String flowControl()
CommonContext.FLOW_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder groupTag(Long groupTag)
groupTag - to be sent in SMsCommonContext.GROUP_TAG_PARAM_NAMEpublic ChannelUriStringBuilder groupTag(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.GROUP_TAG_PARAM_NAMEpublic Long groupTag()
CommonContext.GROUP_TAG_PARAM_NAMEpublic ChannelUriStringBuilder rejoin(Boolean rejoin)
rejoin - false if stream is not to be rejoined.CommonContext.REJOIN_PARAM_NAMEpublic ChannelUriStringBuilder rejoin(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.REJOIN_PARAM_NAMEpublic Boolean rejoin()
CommonContext.REJOIN_PARAM_NAMEpublic ChannelUriStringBuilder spiesSimulateConnection(Boolean spiesSimulateConnection)
spiesSimulateConnection - true if the presence of spy subscriptions simulate a connection.CommonContext.SPIES_SIMULATE_CONNECTION_PARAM_NAMEpublic ChannelUriStringBuilder spiesSimulateConnection(ChannelUri channelUri)
ChannelUri which may be null.channelUri - to read the value from.CommonContext.SPIES_SIMULATE_CONNECTION_PARAM_NAMEpublic Boolean spiesSimulateConnection()
CommonContext.SPIES_SIMULATE_CONNECTION_PARAM_NAMEpublic ChannelUriStringBuilder initialPosition(long position, int initialTermId, int termLength)
position - at which the publication should be started.initialTermId - what which the stream would start.termLength - for the stream.public String build()
Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.