public class ChannelUriStringBuilder
extends java.lang.Object
Publication or Subscription.| Constructor and Description |
|---|
ChannelUriStringBuilder() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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 |
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 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.public 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.public java.lang.String endpoint()
public ChannelUriStringBuilder networkInterface(java.lang.String networkInterface)
networkInterface - for routing traffic.public java.lang.String networkInterface()
public ChannelUriStringBuilder controlEndpoint(java.lang.String controlEndpoint)
controlEndpoint - for joining a MDC control socket.public java.lang.String controlEndpoint()
public ChannelUriStringBuilder controlMode(java.lang.String controlMode)
controlMode - for taking control of MDC.Publication.addDestination(String),
Publication.removeDestination(String)public java.lang.String controlMode()
public ChannelUriStringBuilder reliable(java.lang.Boolean isReliable)
isReliable - false if loss can be be gap filled.public java.lang.Boolean reliable()
public ChannelUriStringBuilder ttl(java.lang.Integer ttl)
ttl - value for a multicast datagram.public java.lang.Integer ttl()
public ChannelUriStringBuilder mtu(java.lang.Integer mtu)
mtu - the maximum transmission unit including Aeron header for a datagram payload.public java.lang.Integer mtu()
public ChannelUriStringBuilder termLength(java.lang.Integer termLength)
termLength - of the buffer used for each term of the log.public java.lang.Integer termLength()
public ChannelUriStringBuilder initialTermId(java.lang.Integer initialTermId)
initialTermId - the initial term id at which a publication will start.public java.lang.Integer initialTermId()
public ChannelUriStringBuilder termId(java.lang.Integer termId)
termId - at which a publication will start.public java.lang.Integer termId()
public ChannelUriStringBuilder termOffset(java.lang.Integer termOffset)
termOffset - within a term at which a publication will start.public java.lang.Integer termOffset()
public java.lang.String build()
Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.