public final class Configuration extends Object
MediaDriver
.Modifier and Type | Field and Description |
---|---|
static long |
CLIENT_LIVENESS_TIMEOUT_DEFAULT_NS
Default timeout for client liveness timeout after which it is considered not alive.
|
static String |
CLIENT_LIVENESS_TIMEOUT_PROP_NAME
Property name for
Aeron client liveness timeout after which it is considered not alive. |
static int |
CMD_QUEUE_CAPACITY
Capacity for the command queues used between driver agents.
|
static int |
COMMAND_DRAIN_LIMIT
Limit for the number of commands drained in one operation.
|
static int |
CONDUCTOR_BUFFER_LENGTH_DEFAULT
Default buffer length for conductor buffers between the client and the media driver conductor.
|
static String |
CONDUCTOR_BUFFER_LENGTH_PROP_NAME
Length (in bytes) of the conductor buffer for control commands from the clients to the media driver conductor.
|
static long |
CONDUCTOR_CYCLE_THRESHOLD_DEFAULT_NS
Default threshold value for the conductor work cycle threshold to track for being exceeded.
|
static String |
CONDUCTOR_CYCLE_THRESHOLD_PROP_NAME
Property name for threshold value for the conductor work cycle threshold to track for being exceeded.
|
static String |
CONDUCTOR_IDLE_STRATEGY_PROP_NAME
Property name for
IdleStrategy to be employed by DriverConductor for
ThreadingMode.DEDICATED and ThreadingMode.SHARED_NETWORK . |
static String |
CONGESTION_CONTROL_STRATEGY_SUPPLIER_PROP_NAME
Property name for
CongestionControlSupplier to be employed for receivers. |
static String |
CONTROLLABLE_IDLE_STRATEGY
IdleStrategy to be used when mode can be controlled via a counter. |
static String |
COUNTER_FREE_TO_REUSE_TIMEOUT_PROP_NAME
Timeout between a counter being freed and being available to be reused.
|
static int |
COUNTERS_VALUES_BUFFER_LENGTH_DEFAULT
Default length of the buffer for the counters file.
|
static String |
COUNTERS_VALUES_BUFFER_LENGTH_PROP_NAME
Property name for length of the buffer for the counters.
|
static long |
DEFAULT_COUNTER_FREE_TO_REUSE_TIMEOUT_NS
Default timeout between a counter being freed and being available to be reused.
|
static long |
DEFAULT_TIMER_INTERVAL_NS
Default interval between checks for timers and timeouts.
|
static String |
DIR_DELETE_ON_SHUTDOWN_PROP_NAME
Should driver attempt to delete
CommonContext.AERON_DIR_PROP_NAME on shutdown. |
static String |
DIR_DELETE_ON_START_PROP_NAME
Should driver attempt to an immediate forced delete of
CommonContext.AERON_DIR_PROP_NAME on start
if it exists. |
static String |
DIR_WARN_IF_EXISTS_PROP_NAME
Warn if the Aeron directory exists.
|
static int |
ERROR_BUFFER_LENGTH_DEFAULT
Default buffer length for the error buffer for the media driver.
|
static String |
ERROR_BUFFER_LENGTH_PROP_NAME
Property name for length of the memory mapped buffer for the distinct error log.
|
static int |
FILE_PAGE_SIZE_DEFAULT
Default page size for alignment of all files.
|
static String |
FILE_PAGE_SIZE_PROP_NAME
Property name for page size to align all files to.
|
static String |
FLOW_CONTROL_GROUP_MIN_SIZE_PROP_NAME
Property name for default minimum group size used by flow control strategies to determine
connectivity.
|
static String |
FLOW_CONTROL_GROUP_TAG_PROP_NAME
Property name for default group tag (gtag) used by the tagged flow control strategy to group receivers.
|
static long |
FLOW_CONTROL_RECEIVER_TIMEOUT_DEFAULT_NS
Default value for the receiver timeout used to determine if the receiver should still be monitored for
flow control purposes.
|
static String |
FLOW_CONTROL_RECEIVER_TIMEOUT_PROP_NAME
Property name for flow control timeout after which with no status messages the receiver is considered gone.
|
static String |
GROUP_RECEIVER_CONSIDERATION_PROP_NAME
Property name for default boolean value for if subscriptions should be considered a group member or individual.
|
static long |
IDLE_MAX_PARK_NS
Maximum back-off park time which doubles on each interval stepping up from the min park idle.
|
static long |
IDLE_MAX_SPINS
Spin on no activity before backing off to yielding.
|
static long |
IDLE_MAX_YIELDS
Yield the thread so others can run before backing off to parking.
|
static long |
IDLE_MIN_PARK_NS
Park for the minimum period of time which is typically 50-55 microseconds on 64-bit non-virtualised Linux.
|
static long |
IMAGE_LIVENESS_TIMEOUT_DEFAULT_NS
Default timeout for
Image liveness timeout. |
static String |
IMAGE_LIVENESS_TIMEOUT_PROP_NAME
Image liveness timeout for how long it stays active without heartbeats or lingers around after being
drained. |
static int |
INITIAL_WINDOW_LENGTH_DEFAULT
Default initial window length for flow control sender to receiver purposes.
|
static String |
INITIAL_WINDOW_LENGTH_PROP_NAME
Property name for length of the initial window which must be sufficient for Bandwidth Delay Product (BDP).
|
static String |
IPC_MTU_LENGTH_PROP_NAME
Length of the maximum transmission unit of the media driver's protocol for IPC.
|
static String |
IPC_PUBLICATION_TERM_WINDOW_LENGTH_PROP_NAME
Property name for window limit for IPC publications.
|
static String |
IPC_TERM_BUFFER_LENGTH_PROP_NAME
Length (in bytes) of the log buffers for IPC publication terms.
|
static int |
LOSS_REPORT_BUFFER_LENGTH_DEFAULT
Default buffer length for the
LossReport . |
static String |
LOSS_REPORT_BUFFER_LENGTH_PROP_NAME
Property name for length of the memory mapped buffer for the
LossReport . |
static long |
LOW_FILE_STORE_WARNING_THRESHOLD_DEFAULT
Default value in bytes for low file storage warning threshold.
|
static String |
LOW_FILE_STORE_WARNING_THRESHOLD_PROP_NAME
Property name low file storage warning threshold in bytes.
|
static int |
MAX_RETRANSMITS_DEFAULT
Default max number of active retransmissions per connected stream.
|
static int |
MAX_UDP_PAYLOAD_LENGTH
Maximum UDP datagram payload size for IPv4.
|
static int |
MTU_LENGTH_DEFAULT
The default is conservative to avoid fragmentation on IPv4 or IPv6 over Ethernet with PPPoE header,
or for clouds such as Google, Azure, and AWS.
|
static String |
MTU_LENGTH_PROP_NAME
Length of the maximum transmission unit of the media driver's protocol.
|
static String |
MULTICAST_FLOW_CONTROL_STRATEGY
FlowControl to be employed for multicast channels. |
static String |
MULTICAST_FLOW_CONTROL_STRATEGY_PROP_NAME
Property name for
FlowControl to be employed for multicast channels. |
static String |
MULTICAST_FLOW_CONTROL_STRATEGY_SUPPLIER_PROP_NAME
Property name for
FlowControlSupplier to be employed for unicast channels. |
static long |
NAK_MAX_BACKOFF_DEFAULT_NS
Default max backoff for NAK delay randomisation in nanoseconds.
|
static int |
NAK_MULTICAST_GROUP_SIZE_DEFAULT
Default multicast receiver group size estimate for NAK delay randomisation.
|
static String |
NAK_MULTICAST_GROUP_SIZE_PROP_NAME
Expected size of multicast receiver groups property name.
|
static String |
NAK_MULTICAST_MAX_BACKOFF_PROP_NAME
Max backoff time for multicast NAK delay randomisation in nanoseconds.
|
static long |
NAK_UNICAST_DELAY_DEFAULT_NS
Default Unicast NAK delay in nanoseconds.
|
static String |
NAK_UNICAST_DELAY_PROP_NAME
Unicast NAK delay in nanoseconds property name.
|
static long |
PENDING_SETUPS_TIMEOUT_NS
Timeout on cleaning up pending SETUP message state on subscriber.
|
static String |
PERFORM_STORAGE_CHECKS_PROP_NAME
Property name for boolean value for if storage checks should be performed when allocating files.
|
static String |
PRINT_CONFIGURATION_ON_START_PROP_NAME
Should the driver print its configuration on start to
System.out . |
static long |
PUBLICATION_CONNECTION_TIMEOUT_DEFAULT_NS
Timeout for
Publication connection timeout in nanoseconds |
static String |
PUBLICATION_CONNECTION_TIMEOUT_PROP_NAME
Property name for
Publication timeout due to lack of status messages which indicate a connection. |
static long |
PUBLICATION_HEARTBEAT_TIMEOUT_NS
Timeout between heartbeats for publications.
|
static long |
PUBLICATION_LINGER_DEFAULT_NS
Default time for
Publication s to linger after draining and before cleanup in nanoseconds. |
static String |
PUBLICATION_LINGER_PROP_NAME
Property name for linger timeout after draining on
Publication s so they can respond to NAKs. |
static int |
PUBLICATION_RESERVED_SESSION_ID_HIGH_DEFAULT
High-end of the publication reserved session-id range which will not be automatically assigned.
|
static String |
PUBLICATION_RESERVED_SESSION_ID_HIGH_PROP_NAME
High-end of the publication reserved session-id range which will not be automatically assigned.
|
static int |
PUBLICATION_RESERVED_SESSION_ID_LOW_DEFAULT
Low-end of the publication reserved session-id range which will not be automatically assigned.
|
static String |
PUBLICATION_RESERVED_SESSION_ID_LOW_PROP_NAME
Property name for low end of the publication reserved session-id range which will not be automatically assigned.
|
static long |
PUBLICATION_SETUP_TIMEOUT_NS
Timeout between SETUP messages for publications during initial setup phase.
|
static String |
PUBLICATION_TERM_WINDOW_LENGTH_PROP_NAME
Property name for window limit on
Publication side by which the publisher can get ahead of consumers. |
static long |
PUBLICATION_UNBLOCK_TIMEOUT_DEFAULT_NS
Timeout for
Publication unblock in nanoseconds. |
static String |
PUBLICATION_UNBLOCK_TIMEOUT_PROP_NAME
Publication unblock timeout due to client crash or untimely commit. |
static long |
RE_RESOLUTION_CHECK_INTERVAL_DEFAULT_NS
Default value for the re-resolution check interval.
|
static String |
RE_RESOLUTION_CHECK_INTERVAL_PROP_NAME
Property name for re-resolution check interval for resolving names to IP address.
|
static String |
RECEIVE_CHANNEL_ENDPOINT_SUPPLIER_PROP_NAME
Property name for
ReceiveChannelEndpointSupplier . |
static String |
RECEIVER_GROUP_TAG_PROP_NAME
Property name for default group tag (gtag) to send in all Status Messages.
|
static String |
RECEIVER_IDLE_STRATEGY_PROP_NAME
|
static String |
REJOIN_STREAM_PROP_NAME
Property name for default boolean value for if a stream can be rejoined.
|
static String |
RELIABLE_STREAM_PROP_NAME
Property name for default boolean value for if a stream is reliable.
|
static String |
RESOLVER_BOOTSTRAP_NEIGHBOR_PROP_NAME
Property name for resolver bootstrap neighbors for which it can bootstrap naming, format is comma separated list
of
hostname:port pairs. |
static String |
RESOLVER_INTERFACE_PROP_NAME
Property name for resolver interface to which network connections are made.
|
static String |
RESOLVER_NAME_PROP_NAME
Property name for resolver name of the Media Driver used in name resolution.
|
static long |
RETRANSMIT_UNICAST_DELAY_DEFAULT_NS
Default delay before retransmission of data for unicast in nanoseconds.
|
static String |
RETRANSMIT_UNICAST_DELAY_PROP_NAME
Property for setting how long to delay before sending a retransmit after receiving a NAK.
|
static long |
RETRANSMIT_UNICAST_LINGER_DEFAULT_NS
Default delay for linger for unicast in nanoseconds.
|
static String |
RETRANSMIT_UNICAST_LINGER_PROP_NAME
Property for setting how long to linger after delay on a NAK before responding to another NAK.
|
static String |
SEND_CHANNEL_ENDPOINT_SUPPLIER_PROP_NAME
Property name for
SendChannelEndpointSupplier . |
static int |
SEND_TO_STATUS_POLL_RATIO_DEFAULT
The ratio for sending data to polling status messages in the Sender.
|
static String |
SEND_TO_STATUS_POLL_RATIO_PROP_NAME
Property name for ratio of sending data to polling status messages in the
Sender . |
static String |
SENDER_IDLE_STRATEGY_PROP_NAME
|
static String |
SHARED_IDLE_STRATEGY_PROP_NAME
Property name for
IdleStrategy to be employed by Sender , Receiver ,
and DriverConductor for ThreadingMode.SHARED . |
static String |
SHARED_NETWORK_IDLE_STRATEGY_PROP_NAME
Property name for
IdleStrategy to be employed by Sender and Receiver for
ThreadingMode.SHARED_NETWORK . |
static String |
SM_APPLICATION_SPECIFIC_FEEDBACK_PROP_NAME
Deprecated.
|
static int |
SOCKET_MULTICAST_TTL_DEFAULT
Multicast TTL value, 0 means use OS default.
|
static String |
SOCKET_MULTICAST_TTL_PROP_NAME
Property name for IP_MULTICAST_TTL setting on UDP sockets.
|
static int |
SOCKET_RCVBUF_LENGTH_DEFAULT
Default SO_RCVBUF length.
|
static String |
SOCKET_RCVBUF_LENGTH_PROP_NAME
Property name for SO_RCVBUF setting on UDP sockets which must be sufficient for Bandwidth Delay Product (BDP).
|
static int |
SOCKET_SNDBUF_LENGTH_DEFAULT
Default SO_SNDBUF length.
|
static String |
SOCKET_SNDBUF_LENGTH_PROP_NAME
Property name for SO_SNDBUF setting on UDP sockets which must be sufficient for Bandwidth Delay Product (BDP).
|
static String |
SPIES_SIMULATE_CONNECTION_PROP_NAME
Property name for if spy subscriptions simulate a connection to a network publication.
|
static long |
STATUS_MESSAGE_TIMEOUT_DEFAULT_NS
Max timeout between Status messages (SM)s.
|
static String |
STATUS_MESSAGE_TIMEOUT_PROP_NAME
Status message timeout in nanoseconds after which one will be sent when data flow has not triggered one.
|
static int |
TERM_BUFFER_IPC_LENGTH_DEFAULT
Default IPC term buffer length.
|
static int |
TERM_BUFFER_LENGTH_DEFAULT
Default term buffer length.
|
static String |
TERM_BUFFER_LENGTH_PROP_NAME
Length (in bytes) of the log buffers for UDP publication terms.
|
static String |
TERM_BUFFER_SPARSE_FILE_PROP_NAME
Property name for boolean value of term buffers should be created sparse.
|
static String |
TERMINATION_VALIDATOR_PROP_NAME
Property name for the class used to validate if a driver should terminate based on token.
|
static String |
TETHER_SUBSCRIPTIONS_PROP_NAME
Property name for default boolean value for if subscriptions should have a tether for local flow control.
|
static String |
THREADING_MODE_PROP_NAME
ThreadingMode to be used by the Aeron MediaDriver . |
static String |
TIMER_INTERVAL_PROP_NAME
Interval between checks for timers and timeouts.
|
static int |
TO_CLIENTS_BUFFER_LENGTH_DEFAULT
Default buffer length for broadcast buffers from the media driver and the clients.
|
static String |
TO_CLIENTS_BUFFER_LENGTH_PROP_NAME
Length (in bytes) of the broadcast buffers from the media driver to the clients.
|
static String |
UNICAST_FLOW_CONTROL_STRATEGY
FlowControl to be employed for unicast channels. |
static String |
UNICAST_FLOW_CONTROL_STRATEGY_PROP_NAME
Property name for
FlowControl to be employed for unicast channels. |
static String |
UNICAST_FLOW_CONTROL_STRATEGY_SUPPLIER_PROP_NAME
Property name for
FlowControlSupplier to be employed for unicast channels. |
static long |
UNTETHERED_RESTING_TIMEOUT_DEFAULT_NS
Default timeout for when an untethered subscription is resting after not being able to keep up
before it is allowed to rejoin a stream.
|
static String |
UNTETHERED_RESTING_TIMEOUT_PROP_NAME
Property name of the timeout for when an untethered subscription is resting after not being able to keep up
before it is allowed to rejoin a stream.
|
static long |
UNTETHERED_WINDOW_LIMIT_TIMEOUT_DEFAULT_NS
Default timeout for when an untethered subscription that is outside the window limit will participate in
local flow control.
|
static String |
UNTETHERED_WINDOW_LIMIT_TIMEOUT_PROP_NAME
Property name of the timeout for when an untethered subscription that is outside the window limit will
participate in local flow control.
|
static String |
USE_WINDOWS_HIGH_RES_TIMER_PROP_NAME
Should high resolution timer be used on Windows.
|
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
static IdleStrategy |
agentIdleStrategy(String strategyName,
StatusIndicator controllableStatus)
Get the
IdleStrategy that should be applied to Agent s. |
static byte[] |
applicationSpecificFeedback()
Deprecated.
see
groupTag() . |
static long |
clientLivenessTimeoutNs()
Aeron client liveness timeout after which it is considered not alive. |
static int |
conductorBufferLength()
Length (in bytes) of the conductor buffer for control commands from the clients to the media driver conductor.
|
static long |
conductorCycleThresholdNs()
Get threshold value for the conductor work cycle threshold to track for being exceeded.
|
static IdleStrategy |
conductorIdleStrategy(StatusIndicator controllableStatus)
IdleStrategy to be employed by DriverConductor for ThreadingMode.DEDICATED and
ThreadingMode.SHARED_NETWORK . |
static CongestionControlSupplier |
congestionControlSupplier()
Get the supplier of
CongestionControl implementations which can be used for receivers. |
static long |
counterFreeToReuseTimeoutNs()
Timeout between a counter being freed and being available to be reused.
|
static int |
countersMetadataBufferLength(int counterValuesBufferLength)
Compute the length of the
CountersManager metadata buffer based on the
length of the counters value buffer length. |
static int |
counterValuesBufferLength()
Length of the buffer for the counters.
|
static boolean |
dirDeleteOnShutdown()
Should driver attempt to delete
CommonContext.AERON_DIR_PROP_NAME on shutdown. |
static boolean |
dirDeleteOnStart()
Should driver attempt to an immediate forced delete of
CommonContext.AERON_DIR_PROP_NAME on start
if it exists. |
static int |
errorBufferLength()
Length of the memory mapped buffer for the distinct error log.
|
static int |
filePageSize()
Page size in bytes to align all files to.
|
static int |
flowControlGroupMinSize()
Default minimum group size used by flow control strategies to determine connectivity.
|
static long |
flowControlGroupTag()
Default group tag (gtag) used by the tagged flow control strategy to group receivers.
|
static long |
flowControlReceiverTimeoutNs()
Flow control timeout after which with no status messages the receiver is considered gone.
|
static Long |
groupTag()
Default group tag (gtag) to send in all Status Messages.
|
static long |
imageLivenessTimeoutNs()
Image liveness timeout for how long it stays active without heartbeats or lingers around after being
drained. |
static int |
initialWindowLength()
Length of the initial window which must be sufficient for Bandwidth Delay Product (BDP).
|
static int |
ipcMtuLength()
Length of the maximum transmission unit of the media driver's protocol for IPC.
|
static int |
ipcPublicationTermWindowLength()
The window limit on IPC
Publication side by which the publisher can get ahead of consumers. |
static int |
ipcTermBufferLength()
Length (in bytes) of the log buffers for IPC publication terms.
|
static int |
lossReportBufferLength()
Length of the memory mapped buffer for the
LossReport . |
static long |
lowStorageWarningThreshold()
Low file storage warning threshold in bytes for when performing storage checks.
|
static int |
mtuLength()
Length of the maximum transmission unit of the media driver's protocol.
|
static FlowControlSupplier |
multicastFlowControlSupplier()
Get the supplier of
FlowControl s which can be used for changing behavior of flow control for multicast
publications. |
static int |
nakMulticastGroupSize()
Expected size of typical multicast receiver groups.
|
static long |
nakMulticastMaxBackoffNs()
Max backoff time for multicast NAK delay randomisation in nanoseconds.
|
static long |
nakUnicastDelayNs()
Unicast NAK delay in nanoseconds.
|
static boolean |
performStorageChecks()
Should storage checks should be performed before allocating files.
|
static boolean |
printConfigurationOnStart()
Should the driver configuration be printed on start.
|
static int |
producerWindowLength(int termBufferLength,
int defaultTermWindowLength)
How far ahead a producer can get from a consumer position.
|
static long |
publicationConnectionTimeoutNs()
Publication timeout due to lack of status messages which indicate a connection. |
static long |
publicationLingerTimeoutNs()
Linger timeout after draining on
Publication s so they can respond to NAKs. |
static int |
publicationReservedSessionIdHigh()
High-end of the publication reserved session-id range which will not be automatically assigned.
|
static int |
publicationReservedSessionIdLow()
Low-end of the publication reserved session-id range which will not be automatically assigned.
|
static int |
publicationTermWindowLength()
The window limit on UDP
Publication side by which the publisher can get ahead of consumers. |
static long |
publicationUnblockTimeoutNs()
Publication unblock timeout due to client crash or untimely commit. |
static ReceiveChannelEndpointSupplier |
receiveChannelEndpointSupplier()
Get the supplier of
ReceiveChannelEndpoint s which can be used for
debugging, monitoring, or modifying the behaviour when receiving from the channel. |
static CommonContext.InferableBoolean |
receiverGroupConsideration()
Should subscriptions should be considered a group member or individual connection, e.g.
|
static IdleStrategy |
receiverIdleStrategy(StatusIndicator controllableStatus)
|
static int |
receiverWindowLength(int termBufferLength,
int initialWindowLength)
Length to be used for the receiver window taking into account initial window length and term buffer length.
|
static boolean |
rejoinStream()
Default boolean value for if a stream can be rejoined.
|
static boolean |
reliableStream()
Default boolean value for if a stream is reliable.
|
static long |
reResolutionCheckIntervalNs()
Re-resolution check interval for resolving names to IP address when they may have changed.
|
static String |
resolverBootstrapNeighbor()
Resolver bootstrap neighbor for which it can bootstrap naming, format is hostname:port.
|
static String |
resolverInterface()
Property name for resolver interface to which network connections are made, format is hostname:port.
|
static String |
resolverName()
Resolver name of the Media Driver used in name resolution.
|
static long |
retransmitUnicastDelayNs()
Setting how long to delay before sending a retransmit after receiving a NAK.
|
static long |
retransmitUnicastLingerNs()
Setting how long to linger after delay on a NAK before responding to another NAK.
|
static SendChannelEndpointSupplier |
sendChannelEndpointSupplier()
Get the supplier of
SendChannelEndpoint s which can be used for
debugging, monitoring, or modifying the behaviour when sending to the channel. |
static IdleStrategy |
senderIdleStrategy(StatusIndicator controllableStatus)
|
static int |
sendToStatusMessagePollRatio()
Ratio of sending data to polling status messages in the
Sender . |
static IdleStrategy |
sharedIdleStrategy(StatusIndicator controllableStatus)
|
static IdleStrategy |
sharedNetworkIdleStrategy(StatusIndicator controllableStatus)
|
static int |
socketMulticastTtl()
IP_MULTICAST_TTL setting on UDP sockets.
|
static int |
socketRcvbufLength()
SO_RCVBUF setting on UDP sockets which must be sufficient for Bandwidth Delay Product (BDP).
|
static int |
socketSndbufLength()
SO_SNDBUF setting on UDP sockets which must be sufficient for Bandwidth Delay Product (BDP).
|
static String |
sourceIdentity(InetSocketAddress srcAddress)
Create a source identity for a given source address.
|
static boolean |
spiesSimulateConnection()
Should spy subscriptions simulate a connection to a network publication.
|
static long |
statusMessageTimeoutNs()
Status message timeout in nanoseconds after which one will be sent when data flow has not triggered one.
|
static int |
termBufferLength()
Length (in bytes) of the log buffers for UDP publication terms.
|
static boolean |
termBufferSparseFile()
Should term buffers be created as sparse files.
|
static TerminationValidator |
terminationValidator()
Get the
TerminationValidator implementations which can be used for validating a termination request
sent to the driver to ensure the client has the right to terminate a driver. |
static boolean |
tetherSubscriptions()
Default for if subscriptions should be tethered.
|
static ThreadingMode |
threadingMode()
ThreadingMode to be used by the Aeron MediaDriver . |
static long |
timerIntervalNs()
Interval between checks for timers and timeouts.
|
static int |
toClientsBufferLength()
Length (in bytes) of the broadcast buffers from the media driver to the clients.
|
static FlowControlSupplier |
unicastFlowControlSupplier()
Get the supplier of
FlowControl s which can be used for changing behavior of flow control for unicast
publications. |
static long |
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.
|
static long |
untetheredWindowLimitTimeoutNs()
The timeout for when an untethered subscription that is outside the window limit will participate in local
flow control.
|
static boolean |
useWindowsHighResTimer()
Should the high-resolution timer be used when running on Windows.
|
static void |
validateInitialWindowLength(int initialWindowLength,
int mtuLength)
Validate that the initial window length is greater than MTU.
|
static void |
validateMtuLength(int mtuLength)
Validate that the MTU is an appropriate length.
|
static void |
validatePageSize(int pageSize)
Validate that page size is valid and alignment is valid.
|
static void |
validateSessionIdRange(int low,
int high)
Validate the range of session ids based on a high and low value provided which accounts for the values wrapping.
|
static void |
validateSocketBufferLengths(MediaDriver.Context ctx)
Validate that the socket buffer lengths are sufficient for the media driver configuration.
|
static void |
validateUnblockTimeout(long publicationUnblockTimeoutNs,
long clientLivenessTimeoutNs,
long timerIntervalNs)
Validate that the timeouts for unblocking publications from a client are valid.
|
static void |
validateUntetheredTimeouts(long untetheredWindowLimitTimeoutNs,
long untetheredRestingTimeoutNs,
long timerIntervalNs)
Validate that the timeouts for untethered subscriptions are greater than timer interval.
|
static boolean |
warnIfDirExists()
Should a warning be printed if the aeron directory exist when starting.
|
public static final String PRINT_CONFIGURATION_ON_START_PROP_NAME
System.out
.public static final String DIR_WARN_IF_EXISTS_PROP_NAME
public static final String DIR_DELETE_ON_START_PROP_NAME
CommonContext.AERON_DIR_PROP_NAME
on start
if it exists.public static final String DIR_DELETE_ON_SHUTDOWN_PROP_NAME
CommonContext.AERON_DIR_PROP_NAME
on shutdown.public static final String USE_WINDOWS_HIGH_RES_TIMER_PROP_NAME
public static final String TETHER_SUBSCRIPTIONS_PROP_NAME
public static final String RELIABLE_STREAM_PROP_NAME
public static final String TERM_BUFFER_SPARSE_FILE_PROP_NAME
public static final String GROUP_RECEIVER_CONSIDERATION_PROP_NAME
public static final String FILE_PAGE_SIZE_PROP_NAME
public static final int FILE_PAGE_SIZE_DEFAULT
public static final String PERFORM_STORAGE_CHECKS_PROP_NAME
public static final String TERM_BUFFER_LENGTH_PROP_NAME
public static final int TERM_BUFFER_LENGTH_DEFAULT
public static final String IPC_TERM_BUFFER_LENGTH_PROP_NAME
public static final int TERM_BUFFER_IPC_LENGTH_DEFAULT
public static final String LOW_FILE_STORE_WARNING_THRESHOLD_PROP_NAME
public static final long LOW_FILE_STORE_WARNING_THRESHOLD_DEFAULT
public static final String CONDUCTOR_BUFFER_LENGTH_PROP_NAME
public static final int CONDUCTOR_BUFFER_LENGTH_DEFAULT
public static final String TO_CLIENTS_BUFFER_LENGTH_PROP_NAME
public static final int TO_CLIENTS_BUFFER_LENGTH_DEFAULT
public static final String COUNTERS_VALUES_BUFFER_LENGTH_PROP_NAME
Each counter uses CountersReader.COUNTER_LENGTH
bytes.
public static final int COUNTERS_VALUES_BUFFER_LENGTH_DEFAULT
public static final String ERROR_BUFFER_LENGTH_PROP_NAME
public static final int ERROR_BUFFER_LENGTH_DEFAULT
public static final String LOSS_REPORT_BUFFER_LENGTH_PROP_NAME
LossReport
.public static final int LOSS_REPORT_BUFFER_LENGTH_DEFAULT
LossReport
.public static final String INITIAL_WINDOW_LENGTH_PROP_NAME
public static final int INITIAL_WINDOW_LENGTH_DEFAULT
Length of Initial Window:
RTT (LAN) = 100 usec Throughput = 10 Gbps
Buffer = Throughput * RTT Buffer = (10 * 1000 * 1000 * 1000 / 8) * 0.0001 = 125000 Round to 128 KB
public static final String STATUS_MESSAGE_TIMEOUT_PROP_NAME
public static final long STATUS_MESSAGE_TIMEOUT_DEFAULT_NS
public static final String SEND_TO_STATUS_POLL_RATIO_PROP_NAME
Sender
.public static final int SEND_TO_STATUS_POLL_RATIO_DEFAULT
public static final String SOCKET_RCVBUF_LENGTH_PROP_NAME
public static final int SOCKET_RCVBUF_LENGTH_DEFAULT
public static final String SOCKET_SNDBUF_LENGTH_PROP_NAME
public static final int SOCKET_SNDBUF_LENGTH_DEFAULT
public static final String SOCKET_MULTICAST_TTL_PROP_NAME
public static final int SOCKET_MULTICAST_TTL_DEFAULT
public static final String PUBLICATION_LINGER_PROP_NAME
Publication
s so they can respond to NAKs.public static final long PUBLICATION_LINGER_DEFAULT_NS
Publication
s to linger after draining and before cleanup in nanoseconds.public static final String CLIENT_LIVENESS_TIMEOUT_PROP_NAME
Aeron
client liveness timeout after which it is considered not alive.public static final long CLIENT_LIVENESS_TIMEOUT_DEFAULT_NS
public static final String IMAGE_LIVENESS_TIMEOUT_PROP_NAME
Image
liveness timeout for how long it stays active without heartbeats or lingers around after being
drained.public static final long IMAGE_LIVENESS_TIMEOUT_DEFAULT_NS
Image
liveness timeout.public static final String PUBLICATION_TERM_WINDOW_LENGTH_PROP_NAME
Publication
side by which the publisher can get ahead of consumers.public static final String IPC_PUBLICATION_TERM_WINDOW_LENGTH_PROP_NAME
public static final String PUBLICATION_UNBLOCK_TIMEOUT_PROP_NAME
Publication
unblock timeout due to client crash or untimely commit.
A publication can become blocked if the client crashes while publishing or if
Publication.tryClaim(int, BufferClaim)
is used without following up by calling
BufferClaim.commit()
or BufferClaim.abort()
.
public static final long PUBLICATION_UNBLOCK_TIMEOUT_DEFAULT_NS
Publication
unblock in nanoseconds.public static final String PUBLICATION_CONNECTION_TIMEOUT_PROP_NAME
Publication
timeout due to lack of status messages which indicate a connection.public static final long PUBLICATION_CONNECTION_TIMEOUT_DEFAULT_NS
Publication
connection timeout in nanosecondspublic static final String SPIES_SIMULATE_CONNECTION_PROP_NAME
If true then this will override the min group size of the min and tagged flow control strategies.
public static final long IDLE_MAX_SPINS
public static final long IDLE_MAX_YIELDS
public static final long IDLE_MIN_PARK_NS
public static final long IDLE_MAX_PARK_NS
public static final String CONTROLLABLE_IDLE_STRATEGY
IdleStrategy
to be used when mode can be controlled via a counter.public static final String SENDER_IDLE_STRATEGY_PROP_NAME
public static final String RECEIVER_IDLE_STRATEGY_PROP_NAME
public static final String CONDUCTOR_IDLE_STRATEGY_PROP_NAME
IdleStrategy
to be employed by DriverConductor
for
ThreadingMode.DEDICATED
and ThreadingMode.SHARED_NETWORK
.public static final String SHARED_NETWORK_IDLE_STRATEGY_PROP_NAME
IdleStrategy
to be employed by Sender
and Receiver
for
ThreadingMode.SHARED_NETWORK
.public static final String SHARED_IDLE_STRATEGY_PROP_NAME
IdleStrategy
to be employed by Sender
, Receiver
,
and DriverConductor
for ThreadingMode.SHARED
.public static final String UNICAST_FLOW_CONTROL_STRATEGY_PROP_NAME
FlowControl
to be employed for unicast channels.public static final String UNICAST_FLOW_CONTROL_STRATEGY
FlowControl
to be employed for unicast channels.public static final String MULTICAST_FLOW_CONTROL_STRATEGY_PROP_NAME
FlowControl
to be employed for multicast channels.public static final String MULTICAST_FLOW_CONTROL_STRATEGY
FlowControl
to be employed for multicast channels.public static final String UNICAST_FLOW_CONTROL_STRATEGY_SUPPLIER_PROP_NAME
FlowControlSupplier
to be employed for unicast channels.public static final String MULTICAST_FLOW_CONTROL_STRATEGY_SUPPLIER_PROP_NAME
FlowControlSupplier
to be employed for unicast channels.public static final int MAX_UDP_PAYLOAD_LENGTH
Max length is 65,507 bytes as 65,535 minus 8 byte UDP header then minus 20 byte IP header.
Then round down to the nearest multiple of FrameDescriptor.FRAME_ALIGNMENT
giving 65,504.
public static final String MTU_LENGTH_PROP_NAME
public static final int MTU_LENGTH_DEFAULT
On networks that suffer little congestion then a larger value can be used to reduce syscall costs.
public static final String IPC_MTU_LENGTH_PROP_NAME
public static final String THREADING_MODE_PROP_NAME
ThreadingMode
to be used by the Aeron MediaDriver
.public static final String TIMER_INTERVAL_PROP_NAME
public static final long DEFAULT_TIMER_INTERVAL_NS
public static final String COUNTER_FREE_TO_REUSE_TIMEOUT_PROP_NAME
public static final long DEFAULT_COUNTER_FREE_TO_REUSE_TIMEOUT_NS
public static final String SEND_CHANNEL_ENDPOINT_SUPPLIER_PROP_NAME
SendChannelEndpointSupplier
.public static final String RECEIVE_CHANNEL_ENDPOINT_SUPPLIER_PROP_NAME
ReceiveChannelEndpointSupplier
.@Deprecated public static final String SM_APPLICATION_SPECIFIC_FEEDBACK_PROP_NAME
Replaced by RECEIVER_GROUP_TAG_PROP_NAME
.
public static final String CONGESTION_CONTROL_STRATEGY_SUPPLIER_PROP_NAME
CongestionControlSupplier
to be employed for receivers.public static final String PUBLICATION_RESERVED_SESSION_ID_LOW_PROP_NAME
public static final int PUBLICATION_RESERVED_SESSION_ID_LOW_DEFAULT
public static final String PUBLICATION_RESERVED_SESSION_ID_HIGH_PROP_NAME
public static final int PUBLICATION_RESERVED_SESSION_ID_HIGH_DEFAULT
public static final int COMMAND_DRAIN_LIMIT
public static final int CMD_QUEUE_CAPACITY
public static final long PENDING_SETUPS_TIMEOUT_NS
public static final long PUBLICATION_SETUP_TIMEOUT_NS
public static final long PUBLICATION_HEARTBEAT_TIMEOUT_NS
public static final String NAK_MULTICAST_GROUP_SIZE_PROP_NAME
public static final int NAK_MULTICAST_GROUP_SIZE_DEFAULT
public static final String NAK_MULTICAST_MAX_BACKOFF_PROP_NAME
public static final long NAK_MAX_BACKOFF_DEFAULT_NS
public static final String NAK_UNICAST_DELAY_PROP_NAME
public static final long NAK_UNICAST_DELAY_DEFAULT_NS
public static final String RETRANSMIT_UNICAST_DELAY_PROP_NAME
public static final long RETRANSMIT_UNICAST_DELAY_DEFAULT_NS
public static final String RETRANSMIT_UNICAST_LINGER_PROP_NAME
public static final long RETRANSMIT_UNICAST_LINGER_DEFAULT_NS
public static final String UNTETHERED_WINDOW_LIMIT_TIMEOUT_PROP_NAME
public static final long UNTETHERED_WINDOW_LIMIT_TIMEOUT_DEFAULT_NS
public static final String UNTETHERED_RESTING_TIMEOUT_PROP_NAME
public static final long UNTETHERED_RESTING_TIMEOUT_DEFAULT_NS
public static final int MAX_RETRANSMITS_DEFAULT
public static final String TERMINATION_VALIDATOR_PROP_NAME
public static final String REJOIN_STREAM_PROP_NAME
public static final String RECEIVER_GROUP_TAG_PROP_NAME
public static final String FLOW_CONTROL_GROUP_TAG_PROP_NAME
public static final String FLOW_CONTROL_GROUP_MIN_SIZE_PROP_NAME
public static final long FLOW_CONTROL_RECEIVER_TIMEOUT_DEFAULT_NS
public static final String FLOW_CONTROL_RECEIVER_TIMEOUT_PROP_NAME
public static final String RESOLVER_NAME_PROP_NAME
public static final String RESOLVER_INTERFACE_PROP_NAME
public static final String RESOLVER_BOOTSTRAP_NEIGHBOR_PROP_NAME
hostname:port
pairs.public static final String RE_RESOLUTION_CHECK_INTERVAL_PROP_NAME
public static final long RE_RESOLUTION_CHECK_INTERVAL_DEFAULT_NS
public static final String CONDUCTOR_CYCLE_THRESHOLD_PROP_NAME
public static final long CONDUCTOR_CYCLE_THRESHOLD_DEFAULT_NS
public static boolean printConfigurationOnStart()
PRINT_CONFIGURATION_ON_START_PROP_NAME
public static boolean useWindowsHighResTimer()
USE_WINDOWS_HIGH_RES_TIMER_PROP_NAME
public static boolean warnIfDirExists()
DIR_WARN_IF_EXISTS_PROP_NAME
public static boolean dirDeleteOnStart()
CommonContext.AERON_DIR_PROP_NAME
on start
if it exists.DIR_DELETE_ON_START_PROP_NAME
public static boolean dirDeleteOnShutdown()
CommonContext.AERON_DIR_PROP_NAME
on shutdown.CommonContext.AERON_DIR_PROP_NAME
on shutdown.DIR_DELETE_ON_SHUTDOWN_PROP_NAME
public static boolean termBufferSparseFile()
TERM_BUFFER_SPARSE_FILE_PROP_NAME
public static boolean tetherSubscriptions()
TETHER_SUBSCRIPTIONS_PROP_NAME
public static boolean reliableStream()
RELIABLE_STREAM_PROP_NAME
public static boolean performStorageChecks()
PERFORM_STORAGE_CHECKS_PROP_NAME
public static boolean spiesSimulateConnection()
If true then this will override the min group size of the min and tagged flow control strategies.
SPIES_SIMULATE_CONNECTION_PROP_NAME
public static CommonContext.InferableBoolean receiverGroupConsideration()
GROUP_RECEIVER_CONSIDERATION_PROP_NAME
public static int conductorBufferLength()
CONDUCTOR_BUFFER_LENGTH_PROP_NAME
public static int toClientsBufferLength()
TO_CLIENTS_BUFFER_LENGTH_PROP_NAME
public static int counterValuesBufferLength()
Each counter uses CountersReader.COUNTER_LENGTH
bytes.
COUNTERS_VALUES_BUFFER_LENGTH_PROP_NAME
public static int errorBufferLength()
public static int nakMulticastGroupSize()
NAK_MULTICAST_GROUP_SIZE_PROP_NAME
public static long nakMulticastMaxBackoffNs()
NAK_MULTICAST_MAX_BACKOFF_PROP_NAME
public static long nakUnicastDelayNs()
NAK_UNICAST_DELAY_PROP_NAME
public static long timerIntervalNs()
TIMER_INTERVAL_PROP_NAME
public static long lowStorageWarningThreshold()
LOW_FILE_STORE_WARNING_THRESHOLD_PROP_NAME
,
PERFORM_STORAGE_CHECKS_PROP_NAME
public static int publicationTermWindowLength()
Publication
side by which the publisher can get ahead of consumers.Publication
side by which the publisher can get ahead of consumers.PUBLICATION_TERM_WINDOW_LENGTH_PROP_NAME
public static int ipcPublicationTermWindowLength()
Publication
side by which the publisher can get ahead of consumers.Publication
side by which the publisher can get ahead of consumers.IPC_PUBLICATION_TERM_WINDOW_LENGTH_PROP_NAME
public static long untetheredWindowLimitTimeoutNs()
UNTETHERED_WINDOW_LIMIT_TIMEOUT_PROP_NAME
,
UNTETHERED_RESTING_TIMEOUT_PROP_NAME
,
TETHER_SUBSCRIPTIONS_PROP_NAME
public static long untetheredRestingTimeoutNs()
UNTETHERED_RESTING_TIMEOUT_PROP_NAME
,
UNTETHERED_WINDOW_LIMIT_TIMEOUT_PROP_NAME
,
TETHER_SUBSCRIPTIONS_PROP_NAME
public static boolean rejoinStream()
REJOIN_STREAM_PROP_NAME
public static Long groupTag()
RECEIVER_GROUP_TAG_PROP_NAME
public static long flowControlGroupTag()
FLOW_CONTROL_GROUP_TAG_PROP_NAME
public static int flowControlGroupMinSize()
FLOW_CONTROL_GROUP_MIN_SIZE_PROP_NAME
public static long flowControlReceiverTimeoutNs()
FLOW_CONTROL_RECEIVER_TIMEOUT_PROP_NAME
public static String resolverName()
RESOLVER_NAME_PROP_NAME
public static String resolverInterface()
RESOLVER_INTERFACE_PROP_NAME
public static String resolverBootstrapNeighbor()
RESOLVER_BOOTSTRAP_NEIGHBOR_PROP_NAME
,
RESOLVER_INTERFACE_PROP_NAME
public static long reResolutionCheckIntervalNs()
RE_RESOLUTION_CHECK_INTERVAL_PROP_NAME
public static int producerWindowLength(int termBufferLength, int defaultTermWindowLength)
termBufferLength
- for when default is not set and considering an appropriate minimum.defaultTermWindowLength
- to take priority.public static int receiverWindowLength(int termBufferLength, int initialWindowLength)
termBufferLength
- for the publication image.initialWindowLength
- set for the channel.public static int termBufferLength()
TERM_BUFFER_LENGTH_PROP_NAME
public static int ipcTermBufferLength()
IPC_TERM_BUFFER_LENGTH_PROP_NAME
public static int initialWindowLength()
INITIAL_WINDOW_LENGTH_PROP_NAME
public static int socketSndbufLength()
SOCKET_SNDBUF_LENGTH_PROP_NAME
public static int socketRcvbufLength()
SOCKET_RCVBUF_LENGTH_PROP_NAME
public static int mtuLength()
MTU_LENGTH_PROP_NAME
public static int ipcMtuLength()
IPC_MTU_LENGTH_PROP_NAME
public static int socketMulticastTtl()
SOCKET_MULTICAST_TTL_PROP_NAME
public static int filePageSize()
FILE_PAGE_SIZE_PROP_NAME
public static int publicationReservedSessionIdLow()
PUBLICATION_RESERVED_SESSION_ID_LOW_PROP_NAME
public static int publicationReservedSessionIdHigh()
PUBLICATION_RESERVED_SESSION_ID_HIGH_PROP_NAME
public static long statusMessageTimeoutNs()
STATUS_MESSAGE_TIMEOUT_PROP_NAME
public static int sendToStatusMessagePollRatio()
Sender
.Sender
.SEND_TO_STATUS_POLL_RATIO_PROP_NAME
public static long counterFreeToReuseTimeoutNs()
COUNTER_FREE_TO_REUSE_TIMEOUT_PROP_NAME
public static long clientLivenessTimeoutNs()
Aeron
client liveness timeout after which it is considered not alive.Aeron
client liveness timeout after which it is considered not alive.CLIENT_LIVENESS_TIMEOUT_PROP_NAME
public static long imageLivenessTimeoutNs()
Image
liveness timeout for how long it stays active without heartbeats or lingers around after being
drained.Image
liveness timeout for how long it stays active without heartbeats or lingers around after
being drained.IMAGE_LIVENESS_TIMEOUT_PROP_NAME
public static long publicationUnblockTimeoutNs()
Publication
unblock timeout due to client crash or untimely commit.
A publication can become blocked if the client crashes while publishing or if
Publication.tryClaim(int, BufferClaim)
is used without following up by calling
BufferClaim.commit()
or BufferClaim.abort()
.
Publication
unblock timeout due to client crash or untimely commit.PUBLICATION_UNBLOCK_TIMEOUT_PROP_NAME
public static long publicationConnectionTimeoutNs()
Publication
timeout due to lack of status messages which indicate a connection.Publication
timeout due to lack of status messages which indicate a connection.PUBLICATION_CONNECTION_TIMEOUT_PROP_NAME
public static long publicationLingerTimeoutNs()
Publication
s so they can respond to NAKs.Publication
s so they can respond to NAKs.PUBLICATION_LINGER_PROP_NAME
public static long retransmitUnicastDelayNs()
RETRANSMIT_UNICAST_DELAY_PROP_NAME
public static long retransmitUnicastLingerNs()
RETRANSMIT_UNICAST_LINGER_PROP_NAME
public static int lossReportBufferLength()
LossReport
.LossReport
.LOSS_REPORT_BUFFER_LENGTH_PROP_NAME
public static ThreadingMode threadingMode()
ThreadingMode
to be used by the Aeron MediaDriver
. This allows for CPU resource to be traded
against throughput and latency.ThreadingMode
to be used by the Aeron MediaDriver
.THREADING_MODE_PROP_NAME
public static long conductorCycleThresholdNs()
public static IdleStrategy agentIdleStrategy(String strategyName, StatusIndicator controllableStatus)
IdleStrategy
that should be applied to Agent
s.strategyName
- of the class to be created.controllableStatus
- status indicator for what the strategy should do.public static IdleStrategy senderIdleStrategy(StatusIndicator controllableStatus)
controllableStatus
- to allow control of ControllableIdleStrategy
, which can be null if not used.IdleStrategy
to be employed by Sender
for ThreadingMode.DEDICATED
.SENDER_IDLE_STRATEGY_PROP_NAME
public static IdleStrategy receiverIdleStrategy(StatusIndicator controllableStatus)
controllableStatus
- to allow control of ControllableIdleStrategy
, which can be null if not used.IdleStrategy
to be employed by Receiver
for ThreadingMode.DEDICATED
.RECEIVER_IDLE_STRATEGY_PROP_NAME
public static IdleStrategy conductorIdleStrategy(StatusIndicator controllableStatus)
IdleStrategy
to be employed by DriverConductor
for ThreadingMode.DEDICATED
and
ThreadingMode.SHARED_NETWORK
.controllableStatus
- to allow control of ControllableIdleStrategy
, which can be null if not used.IdleStrategy
to be employed by DriverConductor
for ThreadingMode.DEDICATED
and ThreadingMode.SHARED_NETWORK
..CONDUCTOR_IDLE_STRATEGY_PROP_NAME
public static IdleStrategy sharedNetworkIdleStrategy(StatusIndicator controllableStatus)
controllableStatus
- to allow control of ControllableIdleStrategy
, which can be null if not used.IdleStrategy
to be employed by Sender
and Receiver
for
ThreadingMode.SHARED_NETWORK
.SHARED_NETWORK_IDLE_STRATEGY_PROP_NAME
public static IdleStrategy sharedIdleStrategy(StatusIndicator controllableStatus)
controllableStatus
- to allow control of ControllableIdleStrategy
, which can be null if not used.IdleStrategy
to be employed by Sender
, Receiver
, and DriverConductor
for
ThreadingMode.SHARED
.SHARED_IDLE_STRATEGY_PROP_NAME
@Deprecated public static byte[] applicationSpecificFeedback()
groupTag()
.SM_APPLICATION_SPECIFIC_FEEDBACK_PROP_NAME
public static SendChannelEndpointSupplier sendChannelEndpointSupplier()
SendChannelEndpoint
s which can be used for
debugging, monitoring, or modifying the behaviour when sending to the channel.SendChannelEndpointSupplier
.public static ReceiveChannelEndpointSupplier receiveChannelEndpointSupplier()
ReceiveChannelEndpoint
s which can be used for
debugging, monitoring, or modifying the behaviour when receiving from the channel.SendChannelEndpointSupplier
.public static FlowControlSupplier unicastFlowControlSupplier()
FlowControl
s which can be used for changing behavior of flow control for unicast
publications.FlowControlSupplier
.public static FlowControlSupplier multicastFlowControlSupplier()
FlowControl
s which can be used for changing behavior of flow control for multicast
publications.FlowControlSupplier
.public static CongestionControlSupplier congestionControlSupplier()
CongestionControl
implementations which can be used for receivers.CongestionControlSupplier
public static void validateInitialWindowLength(int initialWindowLength, int mtuLength)
initialWindowLength
- to be validated.mtuLength
- against which to validate.public static void validateMtuLength(int mtuLength)
FrameDescriptor.FRAME_ALIGNMENT
.mtuLength
- to be validated.ConfigurationException
- if the MTU length is not valid.public static TerminationValidator terminationValidator()
TerminationValidator
implementations which can be used for validating a termination request
sent to the driver to ensure the client has the right to terminate a driver.TerminationValidator
public static void validateSocketBufferLengths(MediaDriver.Context ctx)
ctx
- to be validated.public static void validatePageSize(int pageSize)
pageSize
- to be checked.ConfigurationException
- if the size is not as expected.public static void validateSessionIdRange(int low, int high)
low
- value in the range.high
- value in the range.ConfigurationException
- if the values are not valid.public static int countersMetadataBufferLength(int counterValuesBufferLength)
CountersManager
metadata buffer based on the
length of the counters value buffer length.counterValuesBufferLength
- to compute the metadata buffer length from as a ratio.public static void validateUnblockTimeout(long publicationUnblockTimeoutNs, long clientLivenessTimeoutNs, long timerIntervalNs)
publicationUnblockTimeoutNs
- after which an uncommitted publication will be unblocked.clientLivenessTimeoutNs
- after which a client will be considered not alive.timerIntervalNs
- interval at which the driver will check timeouts.ConfigurationException
- if the values are not valid.public static void validateUntetheredTimeouts(long untetheredWindowLimitTimeoutNs, long untetheredRestingTimeoutNs, long timerIntervalNs)
untetheredWindowLimitTimeoutNs
- after which an untethered subscription will be lingered.untetheredRestingTimeoutNs
- after which an untethered subscription that is lingered can become active.timerIntervalNs
- interval at which the driver will check timeouts.ConfigurationException
- if the values are not valid.public static String sourceIdentity(InetSocketAddress srcAddress)
srcAddress
- to be used for the identity.Copyright © 2014-2022 Real Logic Limited. All Rights Reserved.