@InterfaceAudience.LimitedPrivate(value="Replication") @InterfaceStability.Evolving public class ClusterMarkingEntryFilter extends Object implements WALEntryFilter
| 构造器和说明 |
|---|
ClusterMarkingEntryFilter(UUID clusterId,
UUID peerClusterId,
ReplicationEndpoint replicationEndpoint) |
public ClusterMarkingEntryFilter(UUID clusterId, UUID peerClusterId, ReplicationEndpoint replicationEndpoint)
clusterId - id of this clusterpeerClusterId - of the other clusterreplicationEndpoint - ReplicationEndpoint which will handle the actual replicationpublic WAL.Entry filter(WAL.Entry entry)
WALEntryFilterApplies the filter, possibly returning a different Entry instance. If null is returned, the entry will be skipped.
Notice that you are free to modify the cell list of the give entry, but do not change the content of the cell, it may be used by others at the same time(and usually you can not modify a cell unless you cast it to the implementation class, which is not a good idea).
filter 在接口中 WALEntryFilterentry - Entry to filterCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.