mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-31 04:25:29 +00:00
feat(hooks): Make hook enable flag non-default (#11159)
This commit is contained in:
parent
082ef5b351
commit
c2dbfb8386
@ -30,9 +30,7 @@ public interface MetadataChangeLogHook {
|
||||
* Return whether the hook is enabled or not. If not enabled, the below invoke method is not
|
||||
* triggered
|
||||
*/
|
||||
default boolean isEnabled() {
|
||||
return true;
|
||||
}
|
||||
boolean isEnabled();
|
||||
|
||||
/** Invoke the hook when a MetadataChangeLog is received */
|
||||
void invoke(@Nonnull MetadataChangeLog log) throws Exception;
|
||||
|
@ -20,9 +20,7 @@ public interface PlatformEventHook {
|
||||
* Return whether the hook is enabled or not. If not enabled, the below invoke method is not
|
||||
* triggered
|
||||
*/
|
||||
default boolean isEnabled() {
|
||||
return true;
|
||||
}
|
||||
boolean isEnabled();
|
||||
|
||||
/** Invoke the hook when a PlatformEvent is received */
|
||||
void invoke(@Nonnull OperationContext opContext, @Nonnull PlatformEvent event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user