Enum FeedDataEndAction

java.lang.Object
java.lang.Enum<FeedDataEndAction>
org.instancio.settings.FeedDataEndAction
All Implemented Interfaces:
Serializable, Comparable<FeedDataEndAction>, java.lang.constant.Constable

@ExperimentalApi public enum FeedDataEndAction extends Enum<FeedDataEndAction>
This setting is only applicable if Keys.FEED_DATA_ACCESS is set to FeedDataAccess.SEQUENTIAL.
Since:
5.0.0
See Also:
  • Enum Constant Details

    • RECYCLE

      public static final FeedDataEndAction RECYCLE
      Recycles data when exhausted (starting from the beginning).
    • FAIL

      public static final FeedDataEndAction FAIL
      Throws an exception when end of data is reached.
  • Method Details

    • values

      public static FeedDataEndAction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FeedDataEndAction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null