Class DebugChannelEndpointConfiguration

java.lang.Object
io.aeron.driver.ext.DebugChannelEndpointConfiguration

public class DebugChannelEndpointConfiguration extends Object
Configuration options to be applied when DebugSendChannelEndpoint and DebugReceiveChannelEndpoint are load.
  • Field Details

    • RECEIVE_DATA_LOSS_RATE_PROP_NAME

      public static final String RECEIVE_DATA_LOSS_RATE_PROP_NAME
      Property name for receiver inbound data loss rate.
      See Also:
    • RECEIVE_DATA_LOSS_SEED_PROP_NAME

      public static final String RECEIVE_DATA_LOSS_SEED_PROP_NAME
      Property name for receiver inbound data loss seed.
      See Also:
    • RECEIVE_CONTROL_LOSS_RATE_PROP_NAME

      public static final String RECEIVE_CONTROL_LOSS_RATE_PROP_NAME
      Property name for receiver outbound control loss rate.
      See Also:
    • RECEIVE_CONTROL_LOSS_SEED_PROP_NAME

      public static final String RECEIVE_CONTROL_LOSS_SEED_PROP_NAME
      Property name for receiver outbound control loss seed.
      See Also:
    • SEND_DATA_LOSS_RATE_PROP_NAME

      public static final String SEND_DATA_LOSS_RATE_PROP_NAME
      Property name for sender outbound data loss rate.
      See Also:
    • SEND_DATA_LOSS_SEED_PROP_NAME

      public static final String SEND_DATA_LOSS_SEED_PROP_NAME
      Property name for sender outbound data loss seed.
      See Also:
    • SEND_CONTROL_LOSS_RATE_PROP_NAME

      public static final String SEND_CONTROL_LOSS_RATE_PROP_NAME
      Property name for sender inbound control loss rate.
      See Also:
    • SEND_CONTROL_LOSS_SEED_PROP_NAME

      public static final String SEND_CONTROL_LOSS_SEED_PROP_NAME
      Property name for sender inbound control loss seed.
      See Also:
  • Constructor Details

    • DebugChannelEndpointConfiguration

      public DebugChannelEndpointConfiguration()
  • Method Details

    • lossGeneratorSupplier

      public static LossGenerator lossGeneratorSupplier(double lossRate, long lossSeed)
      Supplier of LossGenerators with provided loss rate and seed for randomisation.
      Parameters:
      lossRate - to generate at.
      lossSeed - to initialise.
      Returns:
      a LossGenerators with provided loss rate and seed.
    • receiveDataLossGeneratorSupplier

      public static LossGenerator receiveDataLossGeneratorSupplier()
      The supplier of LossGenerators for the receiving end of a data stream.
      Returns:
      the supplier of LossGenerators for the receiving end of a data stream.
    • receiveControlLossGeneratorSupplier

      public static LossGenerator receiveControlLossGeneratorSupplier()
      The supplier of LossGenerators for the receiving end of a control stream.
      Returns:
      the supplier of LossGenerators for the receiving end of a control stream.
    • sendDataLossGeneratorSupplier

      public static LossGenerator sendDataLossGeneratorSupplier()
      The supplier of LossGenerators for the send end of a data stream.
      Returns:
      the supplier of LossGenerators for the send end of a data stream.
    • sendControlLossGeneratorSupplier

      public static LossGenerator sendControlLossGeneratorSupplier()
      The supplier of LossGenerators for the send end of a control stream.
      Returns:
      the supplier of LossGenerators for the send end of a control stream.