Class RandomTimeSlot

java.lang.Object
org.jumpmind.util.RandomTimeSlot

public class RandomTimeSlot extends Object
Use runtime configuration specific seeding to get a random number for use in time slotting nodes to help stagger load.
  • Field Details

    • maxValue

      protected int maxValue
    • random

      protected SecureRandom random
  • Constructor Details

    • RandomTimeSlot

      public RandomTimeSlot()
    • RandomTimeSlot

      public RandomTimeSlot(String externalId, int maxValue)
  • Method Details

    • getRandomValueSeededByExternalId

      public int getRandomValueSeededByExternalId()