public interface PropagationHandler extends PropagationAware, org.springframework.core.Ordered
PropagationManager
. Handlers are ordered in the manager component, and the first handler
capable of handling the request for propagation wins and other handlers are ignored. Altered, or
special propagation behavior may be introduced in this way by adding handlers with higher
precedence ordering.Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(Trackable incoming,
String incomingCatalog,
String parentCatalog,
Trackable candidate,
OperationType changeType)
Is this handler capable of handling the propagation process given the contextual information.
|
default int |
getOrder() |
handleCreate, handleDelete, handleUpdate
boolean canHandle(Trackable incoming, String incomingCatalog, String parentCatalog, @Nullable Trackable candidate, OperationType changeType)
incoming
- The Trackable instance that contains the change information to propagateincomingCatalog
- The current catalog in which the propagation is occuringparentCatalog
- The parent catalog up one levelcandidate
- The candidate, if available, representing a catalog override already
existing in the incomingCatalog.changeType
- The type of change requested. See OperationType
.default int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2021. All rights reserved.