Interface SchemaChangeListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SchemaChangeListener
Listener interface for notifications that an object's schema has been changed to match the current transaction.
See Also:
  • Method Details

    • onSchemaChange

      void onSchemaChange(Transaction tx, ObjId id, SchemaId oldVersion, SchemaId newVersion, Map<String,Object> oldFieldValues)
      Receive notification of an object schema change.

      Notifications are delivered in the same thread that first reads the object, before the operation that triggered the schema change returns.

      Parameters:
      tx - associated transaction
      id - the ID of the updated object
      oldVersion - previous schema ID
      newVersion - new schema ID
      oldFieldValues - read-only mapping of the values of all fields in the old schema keyed by name