Enum Class ChangeOperation

java.lang.Object
java.lang.Enum<ChangeOperation>
io.micronaut.data.notification.ChangeOperation
All Implemented Interfaces:
Serializable, Comparable<ChangeOperation>, Constable

public enum ChangeOperation extends Enum<ChangeOperation>
The operation reported by a database change notification provider.
Since:
5.3.0
  • Enum Constant Details

    • INSERT

      public static final ChangeOperation INSERT
      A row was inserted.
    • UPDATE

      public static final ChangeOperation UPDATE
      A row was updated.
    • DELETE

      public static final ChangeOperation DELETE
      A row was deleted.
    • INVALIDATE

      public static final ChangeOperation INVALIDATE
      The provider cannot identify one affected row, or the listener should refresh or reconcile its view of the registered data. Applications determine how to respond to this event.
    • TERMINATED

      public static final ChangeOperation TERMINATED
      The subscription has permanently stopped delivering notifications. Applications should stop trusting state maintained by this subscription and use another source, such as database reads. No entity is associated with this event. This event can be delivered while an earlier notification is still being processed.
  • Method Details

    • values

      public static ChangeOperation[] 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 ChangeOperation 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