Skip to content

Commit

Permalink
Add NotificationClassification.SCHEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
injectives committed Aug 18, 2024
1 parent adcbf49 commit 591011d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions driver/src/main/java/org/neo4j/driver/NotificationCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,15 @@ public sealed interface NotificationCategory extends Serializable permits Notifi
* For instance, notifications that are not part of a more specific class.
*/
NotificationCategory GENERIC = NotificationClassification.GENERIC;

/**
* A schema category.
* <p>
* For instance, notifications about indexes and constraints.
* <p>
* Please note that this category was added to a later server version. Therefore, a compatible server version is
* required to use it.
* @since 5.24.0
*/
NotificationCategory SCHEMA = NotificationClassification.SCHEMA;
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,15 @@ public enum NotificationClassification implements NotificationCategory {
* <p>
* For instance, notifications that are not part of a more specific class.
*/
GENERIC
GENERIC,
/**
* A schema category.
* <p>
* For instance, notifications about indexes and constraints.
* <p>
* Please note that this category was added to a later server version. Therefore, a compatible server version is
* required to use it.
* @since 5.24.0
*/
SCHEMA
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static Optional<NotificationCategory> valueOf(String value) {
case SECURITY -> NotificationCategory.SECURITY;
case TOPOLOGY -> NotificationCategory.TOPOLOGY;
case GENERIC -> NotificationCategory.GENERIC;
case SCHEMA -> NotificationCategory.SCHEMA;
});
}

Expand Down

0 comments on commit 591011d

Please sign in to comment.