Package io.aeron
Class ChannelUriStringBuilder
java.lang.Object
io.aeron.ChannelUriStringBuilder
Typesafe means of building a channel URI associated with a
Publication or Subscription.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCan be used when the likes of session-id wants to reference another entity such as a tagged publication. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ChannelUriStringBuilder(ChannelUri channelUri) Constructs the ChannelUriStringBuilder with the initial values derived from the supplied ChannelUri.ChannelUriStringBuilder(String initialUri) Constructs the ChannelUriStringBuilder with the initial values derived from the supplied URI. -
Method Summary
Modifier and TypeMethodDescriptionalias()Get the alias present in the URI.alias(ChannelUri channelUri) Set the alias to be value which is in theChannelUriwhich may be null.Set the alias for a URI.build()Build a channel URI String for the given parameters.Offset into a message to store the channel receive timestamp.channelReceiveTimestampOffset(ChannelUri channelUri) Offset into a message to store the channel receive timestamp.channelReceiveTimestampOffset(String timestampOffset) Offset into a message to store the channel receive timestamp.Offset into a message to store the channel send timestamp.channelSendTimestampOffset(ChannelUri channelUri) Offset into a message to store the channel send timestamp.channelSendTimestampOffset(String timestampOffset) Offset into a message to store the channel send timestamp.clear()Clear out all the values thus setting back to the initial state.Get the congestion control algorithm to be used on a stream.congestionControl(ChannelUri channelUri) Set the congestion control to be value which is in theChannelUriwhich may be null.congestionControl(String congestionControl) Set the congestion control algorithm to be used on a stream.Get the control address:port pair for dynamically joining a multi-destination-cast publication.controlEndpoint(ChannelUri channelUri) Set the control endpoint value to be what is in theChannelUriwhich may be null.controlEndpoint(String controlEndpoint) Set the control address:port pair for dynamically joining a multi-destination-cast publication.Get the control mode for multi-destination-cast.controlMode(ChannelUri channelUri) Set the control mode to be what is in theChannelUriwhich may be null.controlMode(String controlMode) Set the control mode for multi-destination-cast.endpoint()Get the endpoint address:port pairing for the channel.endpoint(ChannelUri channelUri) Set the endpoint value to be what is in theChannelUriwhich may be null.Set the endpoint address:port pairing for the channel.eos()Should an EOS flag be sent on the media or not.eos(ChannelUri channelUri) Set the eos value to be what is in theChannelUriwhich may be null.Set to indicate if an EOS should be sent on the media or not.Get the flow control strategy to be used on a stream.flowControl(ChannelUri channelUri) Set the flow control to be value which is in theChannelUriwhich may be null.flowControl(String flowControl) Set the flow control strategy to be used on a stream.group()Is the receiver likely to be part of a group.group(ChannelUri channelUri) Set the group value to be what is in theChannelUriwhich may be null.Is the receiver likely to be part of a group.groupTag()Get the group tag (gtag) to be sent in SMs (Status Messages).groupTag(ChannelUri channelUri) Set the group tag (gtag) to be the value which is in theChannelUriwhich may be null.Set the group tag (gtag) to be sent in SMs (Status Messages).initialPosition(long position, int initialTermId, int termLength) Initialise a channel for restarting a publication at a given position.the initial term id at which a publication will start.initialTermId(ChannelUri channelUri) Set the initialTermId value to be what is in theChannelUriwhich may be null.initialTermId(Integer initialTermId) Set the initial term id at which a publication will start.booleanIs the value forsessionId()a tag.isSessionIdTagged(boolean isSessionIdTagged) Toggle the value forsessionId()being tagged or not.linger()Get the time a network publication will linger in nanoseconds after being drained.linger(ChannelUri channelUri) Set the linger value to be what is in theChannelUriwhich may be null.Set the time a network publication will linger in nanoseconds after being drained.The max number of retransmit actions.maxResend(ChannelUri channelUri) The max number of retransmit actions.The max number of retransmit actions.media()The media over which the channel transmits.media(ChannelUri channelUri) Set the endpoint value to be what is in theChannelUri.Set the media for this channel.Offset into a message to store the media receive timestamp.mediaReceiveTimestampOffset(ChannelUri channelUri) Offset into a message to store the media receive timestamp.mediaReceiveTimestampOffset(String timestampOffset) Offset into a message to store the media receive timestamp.minFlowControl(Integer minGroupSize, String timeout) Set min flow control settings to be used on stream.mtu()Get the maximum transmission unit (MTU) including Aeron header for a datagram payload.mtu(ChannelUri channelUri) Set the mtu value to be what is in theChannelUriwhich may be null.Set the maximum transmission unit (MTU) including Aeron header for a datagram payload.nakDelay()The delay to apply before sending a NAK in response to a gap being detected by the receiver.nakDelay(ChannelUri channelUri) The delay to apply before sending a NAK in response to a gap being detected by the receiver.The delay to apply before sending a NAK in response to a gap being detected by the receiver.The delay to apply before sending a NAK in response to a gap being detected by the receiver.Get the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.networkInterface(ChannelUri channelUri) Set the network interface value to be what is in theChannelUriwhich may be null.networkInterface(String networkInterface) Set the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.prefix()Get the prefix for the additional action to be taken on the request.prefix(ChannelUri channelUri) Set the prefix value to be what is in theChannelUri.Set the prefix for taking an additional action such as spying on an outgoing publication with "aeron-spy".Get the publication window length.publicationWindowLength(ChannelUri channelUri) Set the publication window length for this channel from an existingChannelUri, which may have a null value for this field.publicationWindowLength(Integer publicationWindowLength) Set the publication window length which defines how far ahead can publication accept offers.Get the receiver window length to be used as the initial receiver window for flow control.receiverWindowLength(ChannelUri channelUri) Set the flow control initial receiver window length for this channel from an existingChannelUri, which may have a null value for this field.receiverWindowLength(Integer receiverWindowLength) Set the flow control initial receiver window length for this channel.rejoin()Get the subscription semantics for if a stream should be rejoined after going unavailable.rejoin(ChannelUri channelUri) Set the rejoin value to be what is in theChannelUriwhich may be null.Set the subscription semantics for if a stream should be rejoined after going unavailable.reliable()Get the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.reliable(ChannelUri channelUri) Set the reliable value to be what is in theChannelUriwhich may be null.Set the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.Get the correlation id from the image received on the response "server's" subscription to be used by a response publication.responseCorrelationId(ChannelUri channelUri) Set the correlation id from the image received on the response "server's" subscription to be used by a response publication extracted from the channelUri.responseCorrelationId(Long responseCorrelationId) Set the correlation id from the image received on the response "server's" subscription to be used by a response publication.responseCorrelationId(String responseCorrelationId) Set the correlation id from the image received on the response "server's" subscription to be used by a response publication.The response endpoint to be used for a response channel subscription or publication.responseEndpoint(ChannelUri channelUri) Set the response endpoint to be used for a response channel subscription or publication by extracting it from the ChannelUri.responseEndpoint(String responseEndpoint) Set the response endpoint to be used for a response channel subscription or publication.Deprecated.this method will not correctly handle tagged sessionId values that are outside the range of a signed 32-bit number.sessionId(ChannelUri channelUri) Set the sessionId value to be what is in theChannelUriwhich may be null.Set the session id for a publication or restricted subscription.Set the session id for a publication or restricted subscription from a formatted string.Get the underlying OS receive buffer length setting.socketRcvbufLength(ChannelUri channelUri) Set the underlying OS receive buffer length from an existingChannelUri, which may have a null value for this field.socketRcvbufLength(Integer socketRcvbufLength) Set the underlying OS receive buffer length.Get the underlying OS send buffer length setting.socketSndbufLength(ChannelUri channelUri) Set the underlying OS send buffer length from an existingChannelUriwhich may be (null).socketSndbufLength(Integer socketSndbufLength) Set the underlying OS send buffer length.sparse()Should term log buffer be sparse on disk or not.sparse(ChannelUri channelUri) Set the sparse value to be what is in theChannelUriwhich may be null.Set to indicate if a term log buffer should be sparse on disk or not.Get the publication semantics for whether the presence of spy subscriptions simulate a connection.spiesSimulateConnection(ChannelUri channelUri) Set the publication semantics for whether the presence of spy subscriptions simulate a connection to be what is in theChannelUriwhich may be null.spiesSimulateConnection(Boolean spiesSimulateConnection) Set the publication semantics for whether the presence of spy subscriptions simulate a connection.streamId()The stream id of the channel.streamId(ChannelUri channelUri) The stream id of the channel.The stream id of the channel.taggedFlowControl(Long groupTag, Integer minGroupSize, String timeout) Set tagged flow control settings to be used on a stream.taggedSessionId(Long sessionId) Set the session id for a publication or restricted subscription as a tag referenced value.tags()Get the tags for a channel used by a publication or subscription.tags(ChannelUri channelUri) Set the tags to be value which is in theChannelUriwhich may be null.Set the tags to the specified channel and publication/subscription tagChannelUri.Set the tags for a channel used by a publication or subscription.termId()Get the current term id at which a publication will start.termId(ChannelUri channelUri) Set the termId value to be what is in theChannelUriwhich may be null.Set the current term id at which a publication will start.Get the length of buffer used for each term of the log.termLength(ChannelUri channelUri) Set the termLength value to be what is in theChannelUriwhich may be null.termLength(Integer termLength) Set the length of buffer used for each term of the log.Get the offset within a term at which a publication will start.termOffset(ChannelUri channelUri) Set the termOffset value to be what is in theChannelUriwhich may be null.termOffset(Integer termOffset) Set the offset within a term at which a publication will start.tether()Should the subscription channel be tethered or not for local flow control.tether(ChannelUri channelUri) Set the tether value to be what is in theChannelUriwhich may be null.Should the subscription channel be tethered or not for local flow control.toString()ttl()Get the Time To Live (TTL) for a multicast datagram.ttl(ChannelUri channelUri) Set the ttl value to be what is in theChannelUriwhich may be null.Set the Time To Live (TTL) for a multicast datagram.untetheredLingerTimeout(ChannelUri channelUri) The time for an untethered subscription to linger.untetheredLingerTimeout(String timeout) The time for an untethered subscription to linger.The time for an untethered subscription to linger.untetheredLingerTimeoutNs(Long timeout) The time for an untethered subscription to linger.untetheredRestingTimeout(ChannelUri channelUri) The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.untetheredRestingTimeout(String timeout) The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.untetheredRestingTimeoutNs(Long timeout) The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.untetheredWindowLimitTimeout(ChannelUri channelUri) The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.untetheredWindowLimitTimeout(String timeout) The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.untetheredWindowLimitTimeoutNs(Long timeout) The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.validate()Validates that the collection of set parameters are valid together.
-
Field Details
-
TAG_PREFIX
Can be used when the likes of session-id wants to reference another entity such as a tagged publication.For example
session-id=tag:777where the publication usestags=777.- See Also:
-
-
Constructor Details
-
ChannelUriStringBuilder
public ChannelUriStringBuilder()Default constructor. -
ChannelUriStringBuilder
Constructs the ChannelUriStringBuilder with the initial values derived from the supplied URI. Will parse the incoming URI during this process, so could through an exception at this point of the URI is badly formed.- Parameters:
initialUri- initial values for the builder.
-
ChannelUriStringBuilder
Constructs the ChannelUriStringBuilder with the initial values derived from the supplied ChannelUri.- Parameters:
channelUri- initial values for the builder.
-
-
Method Details
-
clear
Clear out all the values thus setting back to the initial state.- Returns:
- this for a fluent API.
-
validate
Validates that the collection of set parameters are valid together.- Returns:
- this for a fluent API.
- Throws:
IllegalArgumentException- if the combination of params is invalid.
-
prefix
Set the prefix for taking an additional action such as spying on an outgoing publication with "aeron-spy".- Parameters:
prefix- to be applied to the URI before the scheme.- Returns:
- this for a fluent API.
- See Also:
-
prefix
Set the prefix value to be what is in theChannelUri.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
prefix
Get the prefix for the additional action to be taken on the request.- Returns:
- the prefix for the additional action to be taken on the request.
-
media
Set the media for this channel. Valid values are "udp" and "ipc".- Parameters:
media- for this channel.- Returns:
- this for a fluent API.
-
media
Set the endpoint value to be what is in theChannelUri.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
-
media
The media over which the channel transmits.- Returns:
- the media over which the channel transmits.
-
endpoint
Set the endpoint address:port pairing for the channel. This is the address the publication sends to and the address the subscription receives from.- Parameters:
endpoint- address and port for the channel.- Returns:
- this for a fluent API.
- See Also:
-
endpoint
Set the endpoint value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
endpoint
Get the endpoint address:port pairing for the channel.- Returns:
- the endpoint address:port pairing for the channel.
- See Also:
-
networkInterface
Set the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.- Parameters:
networkInterface- for routing traffic.- Returns:
- this for a fluent API.
- See Also:
-
networkInterface
Set the network interface value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
networkInterface
Get the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.- Returns:
- the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.
- See Also:
-
controlEndpoint
Set the control address:port pair for dynamically joining a multi-destination-cast publication.- Parameters:
controlEndpoint- for joining MDC control socket.- Returns:
- this for a fluent API.
- See Also:
-
controlEndpoint
Set the control endpoint value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
controlEndpoint
Get the control address:port pair for dynamically joining a multi-destination-cast publication.- Returns:
- the control address:port pair for dynamically joining a multi-destination-cast publication.
- See Also:
-
controlMode
Set the control mode for multi-destination-cast. Set to "manual" for allowing control from the publication API.- Parameters:
controlMode- for taking control of MDC.- Returns:
- this for a fluent API.
- See Also:
-
controlMode
Set the control mode to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
controlMode
Get the control mode for multi-destination-cast.- Returns:
- the control mode for multi-destination-cast.
- See Also:
-
reliable
Set the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.- Parameters:
isReliable- false if loss can be gap-filled.- Returns:
- this for a fluent API.
- See Also:
-
reliable
Set the reliable value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
reliable
Get the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.- Returns:
- the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.
- See Also:
-
ttl
Set the Time To Live (TTL) for a multicast datagram. Valid values are 0-255 for the number of hops the datagram can progress along.- Parameters:
ttl- value for a multicast datagram.- Returns:
- this for a fluent API.
- See Also:
-
ttl
Set the ttl value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
ttl
Get the Time To Live (TTL) for a multicast datagram.- Returns:
- the Time To Live (TTL) for a multicast datagram.
- See Also:
-
mtu
Set the maximum transmission unit (MTU) including Aeron header for a datagram payload. If this is greater than the network MTU for UDP then the packet will be fragmented and can amplify the impact of loss.- Parameters:
mtu- the maximum transmission unit including Aeron header for a datagram payload.- Returns:
- this for a fluent API.
- See Also:
-
mtu
Set the mtu value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
mtu
Get the maximum transmission unit (MTU) including Aeron header for a datagram payload. If this is greater than the network MTU for UDP then the packet will be fragmented and can amplify the impact of loss.- Returns:
- the maximum transmission unit (MTU) including Aeron header for a datagram payload.
- See Also:
-
termLength
Set the length of buffer used for each term of the log. Valid values are powers of 2 in the 64K - 1G range.- Parameters:
termLength- of the buffer used for each term of the log.- Returns:
- this for a fluent API.
- See Also:
-
termLength
Set the termLength value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
termLength
Get the length of buffer used for each term of the log.- Returns:
- the length of buffer used for each term of the log.
- See Also:
-
initialTermId
Set the initial term id at which a publication will start.- Parameters:
initialTermId- the initial term id at which a publication will start.- Returns:
- this for a fluent API.
- See Also:
-
initialTermId
Set the initialTermId value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
initialTermId
the initial term id at which a publication will start.- Returns:
- the initial term id at which a publication will start.
- See Also:
-
termId
Set the current term id at which a publication will start. This when combined with the initial term can establish a starting position.- Parameters:
termId- at which a publication will start.- Returns:
- this for a fluent API.
- See Also:
-
termId
Set the termId value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
termId
Get the current term id at which a publication will start.- Returns:
- the current term id at which a publication will start.
- See Also:
-
termOffset
Set the offset within a term at which a publication will start. This when combined with the term id can establish a starting position.- Parameters:
termOffset- within a term at which a publication will start.- Returns:
- this for a fluent API.
- See Also:
-
termOffset
Set the termOffset value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
termOffset
Get the offset within a term at which a publication will start.- Returns:
- the offset within a term at which a publication will start.
- See Also:
-
sessionId
Set the session id for a publication or restricted subscription.- Parameters:
sessionId- for the publication or a restricted subscription.- Returns:
- this for a fluent API.
- See Also:
-
sessionId
Set the session id for a publication or restricted subscription from a formatted string. Supports a format of either a string encoded signed 32-bit number or 'tag:' followed by a signed 64 bit value.- Parameters:
sessionIdStr- for the publication or a restricted subscription.- Returns:
- this for a fluent API.
- See Also:
-
taggedSessionId
Set the session id for a publication or restricted subscription as a tag referenced value.- Parameters:
sessionId- for the publication or a restricted subscription.- Returns:
- this for a fluent API.
- See Also:
-
sessionId
Set the sessionId value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
sessionId
Deprecated.this method will not correctly handle tagged sessionId values that are outside the range of a signed 32-bit number. If this is called and a tagged value outside this range is currently held in this object, then the result will be the same asLong.intValue().Get the session id for a publication or restricted subscription.- Returns:
- the session id for a publication or restricted subscription.
- See Also:
-
linger
Set the time a network publication will linger in nanoseconds after being drained. This time is so that tail loss can be recovered.- Parameters:
lingerNs- time for the publication after it is drained.- Returns:
- this for a fluent API.
- See Also:
-
linger
Set the linger value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
linger
Get the time a network publication will linger in nanoseconds after being drained. This time is so that tail loss can be recovered.- Returns:
- the time in nanoseconds a publication will linger after being drained.
- See Also:
-
sparse
Set to indicate if a term log buffer should be sparse on disk or not. Sparse saves space at the potential expense of latency.- Parameters:
isSparse- true if the term buffer log is sparse on disk.- Returns:
- this for a fluent API.
- See Also:
-
sparse
Set the sparse value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
sparse
Should term log buffer be sparse on disk or not. Sparse saves space at the potential expense of latency.- Returns:
- true if the term buffer log is sparse on disk.
- See Also:
-
eos
Set to indicate if an EOS should be sent on the media or not.- Parameters:
eos- true if the EOS should be sent.- Returns:
- this for a fluent API.
- See Also:
-
eos
Set the eos value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
eos
Should an EOS flag be sent on the media or not.- Returns:
- true if the EOS param should be set.
- See Also:
-
tether
Should the subscription channel be tethered or not for local flow control.- Parameters:
tether- value to be set for the tether param.- Returns:
- this for a fluent API.
- See Also:
-
tether
Set the tether value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
tether
Should the subscription channel be tethered or not for local flow control.- Returns:
- value of the tether param.
- See Also:
-
group
Is the receiver likely to be part of a group. This informs behaviour such as loss handling.- Parameters:
group- value to be set for the group param.- Returns:
- this for a fluent API.
- See Also:
-
group
Set the group value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
group
Is the receiver likely to be part of a group. This informs behaviour such as loss handling.- Returns:
- value of the group param.
- See Also:
-
tags
Set the tags for a channel used by a publication or subscription. Tags can be used to identify or tag a channel so that a configuration can be referenced and reused.- Parameters:
tags- for the channel, publication or subscription.- Returns:
- this for a fluent API.
- See Also:
-
tags
Set the tags to be value which is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
tags
Set the tags to the specified channel and publication/subscription tagChannelUri. The publication/subscription may be null. If channel tag is null, then the pubSubTag must be null.- Parameters:
channelTag- optional value for the channel tag.pubSubTag- option value for the publication/subscription tag.- Returns:
- this for a fluent API.
- Throws:
IllegalArgumentException- if channelTag is null and pubSubTag is not.- See Also:
-
tags
Get the tags for a channel used by a publication or subscription. Tags can be used to identify or tag a channel so that a configuration can be referenced and reused.- Returns:
- the tags for a channel, publication or subscription.
- See Also:
-
isSessionIdTagged
Toggle the value forsessionId()being tagged or not.- Parameters:
isSessionIdTagged- for session id- Returns:
- this for a fluent API.
- See Also:
-
isSessionIdTagged
public boolean isSessionIdTagged()Is the value forsessionId()a tag.- Returns:
- whether the value for
sessionId()a tag reference or not. - See Also:
-
alias
Set the alias for a URI. Aliases are not interpreted by Aeron and are to be used by the application.- Parameters:
alias- for the URI.- Returns:
- this for a fluent API.
- See Also:
-
alias
Set the alias to be value which is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
alias
Get the alias present in the URI.- Returns:
- alias for the URI.
- See Also:
-
congestionControl
Set the congestion control algorithm to be used on a stream.- Parameters:
congestionControl- for the URI.- Returns:
- this for a fluent API.
- See Also:
-
congestionControl
Set the congestion control to be value which is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
congestionControl
Get the congestion control algorithm to be used on a stream.- Returns:
- congestion control strategy for the channel.
- See Also:
-
flowControl
Set the flow control strategy to be used on a stream.- Parameters:
flowControl- for the URI.- Returns:
- this for a fluent API.
- See Also:
-
taggedFlowControl
public ChannelUriStringBuilder taggedFlowControl(Long groupTag, Integer minGroupSize, String timeout) Set tagged flow control settings to be used on a stream. All specified values may be null and the default specified in the MediaDriver.Context will be used instead.- Parameters:
groupTag- receiver tag for this stream.minGroupSize- group size required to allow publications for this channel to be moved to connected status.timeout- timeout receivers, default is ns, but allows suffixing of time units (e.g. 5s).- Returns:
- this for fluent API.
-
minFlowControl
Set min flow control settings to be used on stream. All specified values may be null and the default specified in the MediaDriver.Context will be used instead.- Parameters:
minGroupSize- group size required to allow publications for this stream to be moved to connected status.timeout- timeout receivers, default is ns, but allows suffixing of time units (e.g. 5s).- Returns:
- this for fluent API.
-
flowControl
Set the flow control to be value which is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
flowControl
Get the flow control strategy to be used on a stream.- Returns:
- flow control strategy for the stream.
- See Also:
-
groupTag
Set the group tag (gtag) to be sent in SMs (Status Messages).- Parameters:
groupTag- to be sent in SMs- Returns:
- this for fluent API.
- See Also:
-
groupTag
Set the group tag (gtag) to be the value which is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
groupTag
Get the group tag (gtag) to be sent in SMs (Status Messages).- Returns:
- receiver tag to be sent in SMs.
- See Also:
-
rejoin
Set the subscription semantics for if a stream should be rejoined after going unavailable.- Parameters:
rejoin- false if stream is not to be rejoined.- Returns:
- this for a fluent API.
- See Also:
-
rejoin
Set the rejoin value to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
rejoin
Get the subscription semantics for if a stream should be rejoined after going unavailable.- Returns:
- the subscription semantics for if a stream should be rejoined after going unavailable.
- See Also:
-
spiesSimulateConnection
Set the publication semantics for whether the presence of spy subscriptions simulate a connection.- Parameters:
spiesSimulateConnection- true if the presence of spy subscriptions simulate a connection.- Returns:
- this for a fluent API.
- See Also:
-
spiesSimulateConnection
Set the publication semantics for whether the presence of spy subscriptions simulate a connection to be what is in theChannelUriwhich may be null.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
spiesSimulateConnection
Get the publication semantics for whether the presence of spy subscriptions simulate a connection.- Returns:
- true if the presence of spy subscriptions simulate a connection, otherwise false.
- See Also:
-
initialPosition
Initialise a channel for restarting a publication at a given position.- Parameters:
position- at which the publication should be started.initialTermId- what which the stream would start.termLength- for the stream.- Returns:
- this for a fluent API.
-
socketSndbufLength
Set the underlying OS send buffer length.- Parameters:
socketSndbufLength- parameter to be passed as SO_SNDBUF value.- Returns:
- this for a fluent API.
- See Also:
-
socketSndbufLength
Set the underlying OS send buffer length from an existingChannelUriwhich may be (null).- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
socketSndbufLength
Get the underlying OS send buffer length setting.- Returns:
- underlying OS send buffer length setting or null if not specified.
- See Also:
-
socketRcvbufLength
Set the underlying OS receive buffer length.- Parameters:
socketRcvbufLength- parameter to be passed as SO_RCVBUF value.- Returns:
- this for a fluent API.
- See Also:
-
socketRcvbufLength
Set the underlying OS receive buffer length from an existingChannelUri, which may have a null value for this field.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
socketRcvbufLength
Get the underlying OS receive buffer length setting.- Returns:
- underlying OS receive buffer length setting or null if not specified.
- See Also:
-
receiverWindowLength
Set the flow control initial receiver window length for this channel.- Parameters:
receiverWindowLength- initial receiver window length.- Returns:
- this for a fluent API.
- See Also:
-
receiverWindowLength
Set the flow control initial receiver window length for this channel from an existingChannelUri, which may have a null value for this field.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
receiverWindowLength
Get the receiver window length to be used as the initial receiver window for flow control.- Returns:
- receiver window length.
- See Also:
-
mediaReceiveTimestampOffset
Offset into a message to store the media receive timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Returns:
- current mediaReceiveTimestampOffset value either as string representation of an integer index or the special value 'reserved'
- See Also:
-
mediaReceiveTimestampOffset
Offset into a message to store the media receive timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Parameters:
timestampOffset- to use as the offset.- Returns:
- this for a fluent API.
- Throws:
IllegalArgumentException- if the string is not null and doesn't represent an int or the 'reserved' value.- See Also:
-
mediaReceiveTimestampOffset
Offset into a message to store the media receive timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Parameters:
channelUri- the existing URI to extract the mediaReceiveTimestampOffset from- Returns:
- this for a fluent API.
- See Also:
-
channelReceiveTimestampOffset
Offset into a message to store the channel receive timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Returns:
- current channelReceiveTimestampOffset value either as string representation of an integer index or the special value 'reserved'
- See Also:
-
channelReceiveTimestampOffset
Offset into a message to store the channel receive timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Parameters:
timestampOffset- to use as the offset.- Returns:
- this for a fluent API.
- Throws:
IllegalArgumentException- if the string doesn't represent an int or the 'reserved' value.- See Also:
-
channelReceiveTimestampOffset
Offset into a message to store the channel receive timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Parameters:
channelUri- the existing URI to extract the receiveTimestampOffset from.- Returns:
- this for a fluent API.
- See Also:
-
channelSendTimestampOffset
Offset into a message to store the channel send timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Parameters:
timestampOffset- to use as the offset.- Returns:
- this for a fluent API.
- Throws:
IllegalArgumentException- if the string is not null doesn't represent an int or the 'reserved' value.- See Also:
-
channelSendTimestampOffset
Offset into a message to store the channel send timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Parameters:
channelUri- the existing URI to extract the channelSendTimestampOffset from.- Returns:
- this for a fluent API.
- See Also:
-
channelSendTimestampOffset
Offset into a message to store the channel send timestamp. May also be the special value 'reserved' which means to store the timestamp in the reserved value field.- Returns:
- current sendTimestampOffset value either as string representation of an integer index or the special value 'reserved'.
- See Also:
-
responseEndpoint
Set the response endpoint to be used for a response channel subscription or publication.- Parameters:
responseEndpoint- response endpoint to be used in this channel URI.- Returns:
- this for a fluent API.
- See Also:
-
responseEndpoint
Set the response endpoint to be used for a response channel subscription or publication by extracting it from the ChannelUri.- Parameters:
channelUri- the existing URI to extract the responseEndpoint from.- Returns:
- this for a fluent API.
- See Also:
-
responseEndpoint
The response endpoint to be used for a response channel subscription or publication.- Returns:
- response endpoint.
- See Also:
-
responseCorrelationId
Get the correlation id from the image received on the response "server's" subscription to be used by a response publication.- Returns:
- correlation id of an image from the response "server's" subscription.
- See Also:
-
responseCorrelationId
Set the correlation id from the image received on the response "server's" subscription to be used by a response publication.- Parameters:
responseCorrelationId- correlation id of an image from the response "server's" subscription.- Returns:
- this for a fluent API.
- See Also:
-
responseCorrelationId
Set the correlation id from the image received on the response "server's" subscription to be used by a response publication.- Parameters:
responseCorrelationId- correlation id of an image from the response "server's" subscription.- Returns:
- this for a fluent API.
- See Also:
-
responseCorrelationId
Set the correlation id from the image received on the response "server's" subscription to be used by a response publication extracted from the channelUri.- Parameters:
channelUri- the existing URI to extract the responseCorrelationId from.- Returns:
- this for a fluent API.
- See Also:
-
nakDelay
The delay to apply before sending a NAK in response to a gap being detected by the receiver.- Parameters:
nakDelay- express as a numeric value with a suffix, e.g. 10ms, 100us.- Returns:
- this for a fluent API.
- See Also:
-
nakDelay
The delay to apply before sending a NAK in response to a gap being detected by the receiver.- Parameters:
nakDelayNs- in nanoseconds.- Returns:
- this for a fluent API.
- See Also:
-
nakDelay
The delay to apply before sending a NAK in response to a gap being detected by the receiver.- Parameters:
channelUri- the existing URI to extract the nakDelay from.- Returns:
- this for a fluent API.
- See Also:
-
nakDelay
The delay to apply before sending a NAK in response to a gap being detected by the receiver.- Returns:
- the delay in nanoseconds, null if not set.
- See Also:
-
untetheredWindowLimitTimeout
The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.- Parameters:
timeout- specified either in nanoseconds or using a units suffix, e.g. 1ms, 1us.- Returns:
- this for a fluent API.
- See Also:
-
untetheredWindowLimitTimeoutNs
The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.- Parameters:
timeout- specified either in nanoseconds.- Returns:
- this for a fluent API.
- See Also:
-
untetheredWindowLimitTimeout
The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.- Parameters:
channelUri- the existing URI to extract the untetheredWindowLimitTimeout from.- Returns:
- this for a fluent API.
- See Also:
-
untetheredWindowLimitTimeoutNs
The timeout for when an untethered subscription that is outside the window limit will participate in local flow control.- Returns:
- the timeout in ns.
- See Also:
-
untetheredLingerTimeout
The time for an untethered subscription to linger.- Parameters:
timeout- specified either in nanoseconds or using a units suffix, e.g. 1ms, 1us.- Returns:
- this for a fluent API.
- See Also:
-
untetheredLingerTimeoutNs
The time for an untethered subscription to linger.- Parameters:
timeout- specified either in nanoseconds.- Returns:
- this for a fluent API.
- See Also:
-
untetheredLingerTimeout
The time for an untethered subscription to linger.- Parameters:
channelUri- the existing URI to extract the untetheredLingerTimeout from.- Returns:
- this for a fluent API.
- See Also:
-
untetheredLingerTimeoutNs
The time for an untethered subscription to linger.- Returns:
- the timeout in ns.
- See Also:
-
untetheredRestingTimeout
The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.- Parameters:
timeout- specified either in nanoseconds or using a units suffix, e.g. 1ms, 1us.- Returns:
- this for a fluent API.
- See Also:
-
untetheredRestingTimeoutNs
The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.- Parameters:
timeout- specified either in nanoseconds.- Returns:
- this for a fluent API.
- See Also:
-
untetheredRestingTimeout
The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.- Parameters:
channelUri- the existing URI to extract the untetheredRestingTimeout from.- Returns:
- this for a fluent API.
- See Also:
-
untetheredRestingTimeoutNs
The timeout for when an untethered subscription is resting after not being able to keep up before it is allowed to rejoin a stream.- Returns:
- the timeout in ns.
- See Also:
-
maxResend
The max number of retransmit actions.- Parameters:
maxResend- the max number of retransmit actions.- Returns:
- this for a fluent API.
- See Also:
-
maxResend
The max number of retransmit actions.- Parameters:
channelUri- the existing URI to extract the maxResend from.- Returns:
- this for a fluent API.
- See Also:
-
maxResend
The max number of retransmit actions.- Returns:
- the max number of outstanding retransmit actions
- See Also:
-
streamId
The stream id of the channel.- Returns:
- the stream or null of no streamId is set.
-
streamId
The stream id of the channel.- Parameters:
streamId- of the channel.- Returns:
- this for a fluent API.
-
streamId
The stream id of the channel.- Parameters:
channelUri- the existing URI to extract the streamId from.- Returns:
- this for a fluent API.
-
publicationWindowLength
Set the publication window length which defines how far ahead can publication accept offers.- Parameters:
publicationWindowLength- of the channel.- Returns:
- this for a fluent API.
- See Also:
-
publicationWindowLength
Set the publication window length for this channel from an existingChannelUri, which may have a null value for this field.- Parameters:
channelUri- to read the value from.- Returns:
- this for a fluent API.
- See Also:
-
publicationWindowLength
Get the publication window length.- Returns:
- publication window length or
nullif was not set. - See Also:
-
build
Build a channel URI String for the given parameters.- Returns:
- a channel URI String for the given parameters.
-
toString
-