public class ChannelUriStringBuilder
extends java.lang.Object
Publication or Subscription.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_PREFIX |
| Constructor and Description |
|---|
ChannelUriStringBuilder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
alias()
Get the alias present in the URI.
|
ChannelUriStringBuilder |
alias(java.lang.String alias)
Set the alias for a URI.
|
java.lang.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.
|
java.lang.String |
controlEndpoint()
Get the control address:port pair for dynamically joining a multi-destination-cast publication.
|
ChannelUriStringBuilder |
controlEndpoint(java.lang.String controlEndpoint)
Set the control address:port pair for dynamically joining a multi-destination-cast publication.
|
java.lang.String |
controlMode()
Get the control mode for multi-destination-cast.
|
ChannelUriStringBuilder |
controlMode(java.lang.String controlMode)
Set the control mode for multi-destination-cast.
|
java.lang.String |
endpoint()
Get the endpoint address:port pairing for the channel.
|
ChannelUriStringBuilder |
endpoint(java.lang.String endpoint)
Set the endpoint address:port pairing for the channel.
|
ChannelUriStringBuilder |
initialPosition(long position,
int initialTermId,
int termLength)
Initialise a channel for restarting a publication at a given position.
|
java.lang.Integer |
initialTermId()
the initial term id at which a publication will start.
|
ChannelUriStringBuilder |
initialTermId(java.lang.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. |
java.lang.Long |
linger()
Get the time a network publication will linger in nanoseconds after being drained.
|
ChannelUriStringBuilder |
linger(java.lang.Long lingerNs)
Set the time a network publication will linger in nanoseconds after being drained.
|
java.lang.String |
media()
The media over which the channel transmits.
|
ChannelUriStringBuilder |
media(java.lang.String media)
Set the media for this channel.
|
java.lang.Integer |
mtu()
Get the maximum transmission unit (MTU) including Aeron header for a datagram payload.
|
ChannelUriStringBuilder |
mtu(java.lang.Integer mtu)
Set the maximum transmission unit (MTU) including Aeron header for a datagram payload.
|
java.lang.String |
networkInterface()
Get the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.
|
ChannelUriStringBuilder |
networkInterface(java.lang.String networkInterface)
Set the address of the local interface in the form host:[port]/[subnet mask] for routing traffic.
|
java.lang.String |
prefix()
Get the prefix for the additional action to be taken on the request.
|
ChannelUriStringBuilder |
prefix(java.lang.String prefix)
Set the prefix for taking an addition action such as spying on an outgoing publication with "aeron-spy".
|
java.lang.Boolean |
reliable()
Get the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.
|
ChannelUriStringBuilder |
reliable(java.lang.Boolean isReliable)
Set the subscription semantics for if loss is acceptable, or not, for a reliable message delivery.
|
java.lang.Integer |
sessionId()
Get the session id for a publication or restricted subscription.
|
ChannelUriStringBuilder |
sessionId(java.lang.Integer sessionId)
Set the session id for a publication or restricted subscription.
|
java.lang.Boolean |
sparse()
Get if a term log buffer should be sparse on disk or not.
|
ChannelUriStringBuilder |
sparse(java.lang.Boolean isSparse)
Set to indicate if a term log buffer should be sparse on disk or not.
|
java.lang.String |
tags()
Get the tags for a channel used by a publication or subscription.
|
ChannelUriStringBuilder |
tags(java.lang.String tags)
Set the tags for a channel used by a publication or subscription.
|
java.lang.Integer |
termId()
Get the current term id at which a publication will start.
|
ChannelUriStringBuilder |
termId(java.lang.Integer termId)
Set the current term id at which a publication will start.
|
java.lang.Integer |
termLength()
Get the length of buffer used for each term of the log.
|
ChannelUriStringBuilder |
termLength(java.lang.Integer termLength)
Set the length of buffer used for each term of the log.
|
java.lang.Integer |
termOffset()
Get the offset within a term at which a publication will start.
|
ChannelUriStringBuilder |
termOffset(java.lang.Integer termOffset)
Set the offset within a term at which a publication will start.
|
java.lang.Integer |
ttl()
Get the Time To Live (TTL) for a multicast datagram.
|
ChannelUriStringBuilder |
ttl(java.lang.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 java.lang.String TAG_PREFIX
public ChannelUriStringBuilder clear()
public ChannelUriStringBuilder validate()
java.lang.IllegalStateException - if the combination of params is invalid.public ChannelUriStringBuilder prefix(java.lang.String prefix)
prefix - to be applied to the URI before the the scheme.ChannelUri.SPY_QUALIFIERpublic java.lang.String prefix()
public ChannelUriStringBuilder media(java.lang.String media)
media - for this channel.public java.lang.String media()
public ChannelUriStringBuilder endpoint(java.lang.String endpoint)
endpoint - address and port for the channel.CommonContext.ENDPOINT_PARAM_NAMEpublic java.lang.String endpoint()
CommonContext.ENDPOINT_PARAM_NAMEpublic ChannelUriStringBuilder networkInterface(java.lang.String networkInterface)
networkInterface - for routing traffic.CommonContext.INTERFACE_PARAM_NAMEpublic java.lang.String networkInterface()
CommonContext.INTERFACE_PARAM_NAMEpublic ChannelUriStringBuilder controlEndpoint(java.lang.String controlEndpoint)
controlEndpoint - for joining a MDC control socket.CommonContext.MDC_CONTROL_PARAM_NAMEpublic java.lang.String controlEndpoint()
CommonContext.MDC_CONTROL_PARAM_NAMEpublic ChannelUriStringBuilder controlMode(java.lang.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 java.lang.String controlMode()
CommonContext.MDC_CONTROL_MODE_PARAM_NAME,
CommonContext.MDC_CONTROL_MODE_MANUAL,
CommonContext.MDC_CONTROL_MODE_DYNAMICpublic ChannelUriStringBuilder reliable(java.lang.Boolean isReliable)
isReliable - false if loss can be be gap filled.CommonContext.RELIABLE_STREAM_PARAM_NAMEpublic java.lang.Boolean reliable()
CommonContext.RELIABLE_STREAM_PARAM_NAMEpublic ChannelUriStringBuilder ttl(java.lang.Integer ttl)
ttl - value for a multicast datagram.CommonContext.TTL_PARAM_NAMEpublic java.lang.Integer ttl()
CommonContext.TTL_PARAM_NAMEpublic ChannelUriStringBuilder mtu(java.lang.Integer mtu)
mtu - the maximum transmission unit including Aeron header for a datagram payload.CommonContext.MTU_LENGTH_PARAM_NAMEpublic java.lang.Integer mtu()
CommonContext.MTU_LENGTH_PARAM_NAMEpublic ChannelUriStringBuilder termLength(java.lang.Integer termLength)
termLength - of the buffer used for each term of the log.CommonContext.TERM_LENGTH_PARAM_NAMEpublic java.lang.Integer termLength()
CommonContext.TERM_LENGTH_PARAM_NAMEpublic ChannelUriStringBuilder initialTermId(java.lang.Integer initialTermId)
initialTermId - the initial term id at which a publication will start.CommonContext.INITIAL_TERM_ID_PARAM_NAMEpublic java.lang.Integer initialTermId()
CommonContext.INITIAL_TERM_ID_PARAM_NAMEpublic ChannelUriStringBuilder termId(java.lang.Integer termId)
termId - at which a publication will start.CommonContext.TERM_ID_PARAM_NAMEpublic java.lang.Integer termId()
CommonContext.TERM_ID_PARAM_NAMEpublic ChannelUriStringBuilder termOffset(java.lang.Integer termOffset)
termOffset - within a term at which a publication will start.CommonContext.TERM_OFFSET_PARAM_NAMEpublic java.lang.Integer termOffset()
CommonContext.TERM_OFFSET_PARAM_NAMEpublic ChannelUriStringBuilder sessionId(java.lang.Integer sessionId)
sessionId - for the publication or a restricted subscription.CommonContext.SESSION_ID_PARAM_NAMEpublic java.lang.Integer sessionId()
CommonContext.SESSION_ID_PARAM_NAMEpublic ChannelUriStringBuilder linger(java.lang.Long lingerNs)
lingerNs - time for the publication after it is drained.CommonContext.LINGER_PARAM_NAMEpublic java.lang.Long linger()
CommonContext.LINGER_PARAM_NAMEpublic ChannelUriStringBuilder sparse(java.lang.Boolean isSparse)
isSparse - true if the term buffer log is sparse on disk.CommonContext.SPARSE_PARAM_NAMEpublic java.lang.Boolean sparse()
CommonContext.SPARSE_PARAM_NAMEpublic ChannelUriStringBuilder tags(java.lang.String tags)
tags - for the channel, publication or subscription.CommonContext.TAGS_PARAM_NAME,
CommonContext.TAG_PREFIXpublic java.lang.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(java.lang.String alias)
alias - for the URI.CommonContext.ALIAS_PARAM_NAMEpublic java.lang.String alias()
CommonContext.ALIAS_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 java.lang.String build()
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.