Enum Class WatchEventType

java.lang.Object
java.lang.Enum<WatchEventType>
io.micronaut.scheduling.io.watch.event.WatchEventType
All Implemented Interfaces:
Serializable, Comparable<WatchEventType>, Constable

public enum WatchEventType extends Enum<WatchEventType>
The watch event type. Abstracts over WatchEvent since the default OS X uses polling which is slow.
Since:
1.1.0
Author:
graemerocher
  • Enum Constant Details

    • CREATE

      public static final WatchEventType CREATE
      A file / directory was created.
    • MODIFY

      public static final WatchEventType MODIFY
      A file / directory was modified.
    • DELETE

      public static final WatchEventType DELETE
      A file / directory was deleted.
  • Method Details

    • values

      public static WatchEventType[] 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 WatchEventType 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
    • of

      public static WatchEventType of(WatchEvent.Kind kind)
      Produces a WatchEventType for the given WatchEvent.kind().
      Parameters:
      kind - The kind
      Returns:
      The event type