public class WanReplicationRef extends Object implements IdentifiedDataSerializable, Serializable
WanReplicationConfig
,
Serialized FormConstructor 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_NAME
public WanReplicationRef setMergePolicyClassName(@Nonnull String mergePolicyClassName)
DEFAULT_MERGE_POLICY_CLASS_NAME
mergePolicyClassName
- 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()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- 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
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2023 Hazelcast, Inc.. All rights reserved.