static IdleStrategy receiverIdleStrategy(final StatusIndicator controllableStatus) { return agentIdleStrategy(RECEIVER_IDLE_STRATEGY, controllableStatus); }
if (null == sharedIdleStrategy) sharedIdleStrategy = Configuration.sharedIdleStrategy(indicator); if (null == conductorIdleStrategy) conductorIdleStrategy = Configuration.conductorIdleStrategy(indicator); senderIdleStrategy = Configuration.senderIdleStrategy(indicator); receiverIdleStrategy = Configuration.receiverIdleStrategy(indicator); if (null == conductorIdleStrategy) conductorIdleStrategy = Configuration.conductorIdleStrategy(indicator); sharedNetworkIdleStrategy = Configuration.sharedNetworkIdleStrategy(indicator);
unicastFlowControlSupplier = Configuration.unicastFlowControlSupplier(); multicastFlowControlSupplier = Configuration.multicastFlowControlSupplier(); sendChannelEndpointSupplier = Configuration.sendChannelEndpointSupplier(); receiveChannelEndpointSupplier = Configuration.receiveChannelEndpointSupplier(); congestionControlSupplier = Configuration.congestionControlSupplier();
this.termBufferLength = termLength; this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength); this.termWindowLength = Configuration.ipcPublicationTermWindowLength(termLength); this.tripGain = termWindowLength / 8; this.publisherPos = publisherPos;
termWindowLength = Configuration.publicationTermWindowLength(termLength);
.publicationTermBufferLength(TERM_BUFFER_LENGTH) .ipcTermBufferLength(TERM_BUFFER_LENGTH) .unicastFlowControlSupplier(Configuration.unicastFlowControlSupplier()) .multicastFlowControlSupplier(Configuration.multicastFlowControlSupplier()) .driverCommandQueue(new ManyToOneConcurrentArrayQueue<>(Configuration.CMD_QUEUE_CAPACITY)) .errorHandler(mockErrorHandler) .cachedEpochClock(new CachedEpochClock()) .cachedNanoClock(new CachedNanoClock()) .sendChannelEndpointSupplier(Configuration.sendChannelEndpointSupplier()) .receiveChannelEndpointSupplier(Configuration.receiveChannelEndpointSupplier()) .congestControlSupplier(Configuration.congestionControlSupplier());
this.termBufferLength = termLength; this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength); this.termWindowLength = Configuration.ipcPublicationTermWindowLength(termLength); this.tripGain = termWindowLength / 8; this.publisherPos = publisherPos;
termWindowLength = Configuration.publicationTermWindowLength(termLength);
unicastFlowControlSupplier = Configuration.unicastFlowControlSupplier(); multicastFlowControlSupplier = Configuration.multicastFlowControlSupplier(); sendChannelEndpointSupplier = Configuration.sendChannelEndpointSupplier(); receiveChannelEndpointSupplier = Configuration.receiveChannelEndpointSupplier(); congestionControlSupplier = Configuration.congestionControlSupplier();
if (null == sharedIdleStrategy) sharedIdleStrategy = Configuration.sharedIdleStrategy(indicator); if (null == conductorIdleStrategy) conductorIdleStrategy = Configuration.conductorIdleStrategy(indicator); senderIdleStrategy = Configuration.senderIdleStrategy(indicator); receiverIdleStrategy = Configuration.receiverIdleStrategy(indicator); if (null == conductorIdleStrategy) conductorIdleStrategy = Configuration.conductorIdleStrategy(indicator); sharedNetworkIdleStrategy = Configuration.sharedNetworkIdleStrategy(indicator);
static IdleStrategy sharedNetworkIdleStrategy(final StatusIndicator controllableStatus) { return agentIdleStrategy(SHARED_NETWORK_IDLE_STRATEGY, controllableStatus); }
this.termBufferLength = termLength; this.positionBitsToShift = LogBufferDescriptor.positionBitsToShift(termLength); this.termWindowLength = Configuration.ipcPublicationTermWindowLength(termLength); this.tripGain = termWindowLength / 8; this.publisherPos = publisherPos;
termWindowLength = Configuration.publicationTermWindowLength(termLength);
unicastFlowControlSupplier = Configuration.unicastFlowControlSupplier(); multicastFlowControlSupplier = Configuration.multicastFlowControlSupplier(); sendChannelEndpointSupplier = Configuration.sendChannelEndpointSupplier(); receiveChannelEndpointSupplier = Configuration.receiveChannelEndpointSupplier(); congestionControlSupplier = Configuration.congestionControlSupplier();
if (null == sharedIdleStrategy) sharedIdleStrategy = Configuration.sharedIdleStrategy(indicator); if (null == conductorIdleStrategy) conductorIdleStrategy = Configuration.conductorIdleStrategy(indicator); senderIdleStrategy = Configuration.senderIdleStrategy(indicator); receiverIdleStrategy = Configuration.receiverIdleStrategy(indicator); if (null == conductorIdleStrategy) conductorIdleStrategy = Configuration.conductorIdleStrategy(indicator); sharedNetworkIdleStrategy = Configuration.sharedNetworkIdleStrategy(indicator);
static IdleStrategy sharedIdleStrategy(final StatusIndicator controllableStatus) { return agentIdleStrategy(SHARED_IDLE_STRATEGY, controllableStatus); }
static IdleStrategy senderIdleStrategy(final StatusIndicator controllableStatus) { return agentIdleStrategy(SENDER_IDLE_STRATEGY, controllableStatus); }
static IdleStrategy conductorIdleStrategy(final StatusIndicator controllableStatus) { return agentIdleStrategy(CONDUCTOR_IDLE_STRATEGY, controllableStatus); }
/** * Create a supplier of {@link IdleStrategy}s that will use the system property. * * @param controllableStatus if a {@link org.agrona.concurrent.ControllableIdleStrategy} is required. * @return the new idle strategy */ public static Supplier<IdleStrategy> idleStrategySupplier(final StatusIndicator controllableStatus) { return () -> { final String name = System.getProperty(ARCHIVE_IDLE_STRATEGY_PROP_NAME, DEFAULT_IDLE_STRATEGY); return io.aeron.driver.Configuration.agentIdleStrategy(name, controllableStatus); }; }
/** * Create a supplier of {@link IdleStrategy}s that will use the system property. * * @param controllableStatus if a {@link org.agrona.concurrent.ControllableIdleStrategy} is required. * @return the new idle strategy */ public static Supplier<IdleStrategy> idleStrategySupplier(final StatusIndicator controllableStatus) { return () -> { final String name = System.getProperty(CLUSTER_IDLE_STRATEGY_PROP_NAME, DEFAULT_IDLE_STRATEGY); return io.aeron.driver.Configuration.agentIdleStrategy(name, controllableStatus); }; }