public class WanReplicationRef extends Object implements IdentifiedDataSerializable, Serializable
WanReplicationConfig,
Serialized Form| Constructor and Description |
|---|
WanReplicationRef() |
WanReplicationRef(String name,
String mergePolicyClassName,
List<String> filters,
boolean republishingEnabled) |
WanReplicationRef(WanReplicationRef ref) |
| Modifier and Type | Method and Description |
|---|---|
WanReplicationRef |
addFilter(String filterClassName)
Adds the class name implementing the CacheWanEventFilter or
MapWanEventFilter for filtering outbound WAN replication events.
|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
List<String> |
getFilters()
Returns the list of class names implementing the CacheWanEventFilter or
MapWanEventFilter for filtering outbound WAN replication events.
|
String |
getMergePolicyClassName()
Returns the merge policy sent to the WAN replication target to merge
replicated entries with existing target entries.
|
String |
getName()
Returns the WAN replication reference name.
|
int |
hashCode() |
boolean |
isRepublishingEnabled()
Returns
true if incoming WAN events to this member should be
republished (forwarded) to this WAN replication reference. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
WanReplicationRef |
setFilters(List<String> filters)
Sets the list of class names implementing the CacheWanEventFilter or
MapWanEventFilter for filtering outbound WAN replication events.
|
WanReplicationRef |
setMergePolicyClassName(String mergePolicyClassName)
Sets the merge policy sent to the WAN replication target to merge
replicated entries with existing target entries.
|
WanReplicationRef |
setName(String name)
Sets the WAN replication reference name.
|
WanReplicationRef |
setRepublishingEnabled(boolean republishEnabled)
Sets if incoming WAN events to this member should be republished
(forwarded) to this WAN replication reference.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public WanReplicationRef()
public WanReplicationRef(WanReplicationRef ref)
public String getName()
public WanReplicationRef setName(@Nonnull String name)
name - the reference name@Nonnull public String getMergePolicyClassName()
DEFAULT_MERGE_POLICY_CLASS_NAMEpublic WanReplicationRef setMergePolicyClassName(@Nonnull String mergePolicyClassName)
DEFAULT_MERGE_POLICY_CLASS_NAMEmergePolicyClassName - the merge policypublic WanReplicationRef addFilter(@Nonnull String filterClassName)
NOTE: EE only
filterClassName - the class name@Nonnull public List<String> getFilters()
NOTE: EE only
public WanReplicationRef setFilters(@Nonnull List<String> filters)
NOTE: EE only
filters - the list of class names implementing CacheWanEventFilter or MapWanEventFilterpublic boolean isRepublishingEnabled()
true if incoming WAN events to this member should be
republished (forwarded) to this WAN replication reference.public WanReplicationRef setRepublishingEnabled(boolean republishEnabled)
republishEnabled - whether WAN event republishing is enabledpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2022 Hazelcast, Inc.. All rights reserved.