Enum Class LogStreamProvider.Options

java.lang.Object
java.lang.Enum<LogStreamProvider.Options>
org.osgi.service.log.stream.LogStreamProvider.Options
All Implemented Interfaces:
Serializable, Comparable<LogStreamProvider.Options>, Constable
Enclosing interface:
LogStreamProvider

public static enum LogStreamProvider.Options extends Enum<LogStreamProvider.Options>
Creation options for the PushStream of LogEntry objects.
  • Enum Constant Details

    • HISTORY

      public static final LogStreamProvider.Options HISTORY
      Include history.

      Prime the created PushStream with the available historical LogEntry objects. The number of available LogEntry objects is implementation specific.

      The created PushStream will supply the available historical LogEntry objects followed by newly created LogEntry objects.

  • Method Details

    • values

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

      public static LogStreamProvider.Options valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null