Class RandomEntropyManager

java.lang.Object
com.aoindustries.aoserv.daemon.random.RandomEntropyManager
All Implemented Interfaces:
Runnable

public final class RandomEntropyManager extends Object implements Runnable
Watches the amount of entropy available in the system, obtains entropy from the master when running low, provides entropy to the master when has extra.
Author:
AO Industries, Inc.
  • Field Details

    • MIN_DELAY

      public static final long MIN_DELAY
      The minimum delay between scans.
      See Also:
    • MAX_OBTAIN_DELAY

      public static final long MAX_OBTAIN_DELAY
      The maximum delay between scans when obtaining from the master.
      See Also:
    • MAX_OBTAIN_INCOMPLETE_DELAY

      public static final long MAX_OBTAIN_INCOMPLETE_DELAY
      The delay when obtaining from the master is incomplete (master out of entropy). This is used to avoid hitting the master stupid-hard when it is depleted.
      See Also:
    • MAX_DESIRED_DELAY

      public static final long MAX_DESIRED_DELAY
      The maximum delay between scans when at the desired entropy.
      See Also:
    • GET_MASTER_ENTROPY_NEEDED_INTERVAL

      public static final long GET_MASTER_ENTROPY_NEEDED_INTERVAL
      The minimum interval between calls to getMasterEntropyNeeded().
      See Also:
    • ERROR_DELAY

      public static final long ERROR_DELAY
      The delay after an error occurs.
      See Also:
  • Method Details