Class WriteAckDelay

java.lang.Object
org.elasticsearch.action.bulk.WriteAckDelay
All Implemented Interfaces:
Consumer<Runnable>

public class WriteAckDelay extends Object implements Consumer<Runnable>
  • Field Details

    • WRITE_ACK_DELAY_INTERVAL

      public static final Setting<TimeValue> WRITE_ACK_DELAY_INTERVAL
    • WRITE_ACK_DELAY_RANDOMNESS_BOUND

      public static final Setting<TimeValue> WRITE_ACK_DELAY_RANDOMNESS_BOUND
  • Constructor Details

    • WriteAckDelay

      public WriteAckDelay(long writeDelayIntervalNanos, long writeDelayRandomnessBoundMillis, ThreadPool threadPool)
  • Method Details

    • accept

      public void accept(Runnable runnable)
      Specified by:
      accept in interface Consumer<Runnable>
    • create

      public static WriteAckDelay create(Settings settings, ThreadPool threadPool)
      Creates a potential WriteAckDelay object based on settings. If indices.write_ack_delay_interval is less than or equal to 0 null will be returned.