public class WanReplicationRef extends Object implements DataSerializable, Serializable
WanReplicationConfig
,
Serialized FormConstructor and Description |
---|
WanReplicationRef() |
WanReplicationRef(String name,
String mergePolicy,
List<String> filters,
boolean republishingEnabled) |
WanReplicationRef(WanReplicationRef ref) |
Modifier and Type | Method and Description |
---|---|
WanReplicationRef |
addFilter(String filter)
Adds the class name implementing the CacheWanEventFilter or
MapWanEventFilter for filtering outbound WAN replication events.
|
boolean |
equals(Object o) |
WanReplicationRefReadOnly |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only
|
List<String> |
getFilters()
Returns the list of class names implementing the CacheWanEventFilter or
MapWanEventFilter for filtering outbound WAN replication events.
|
String |
getMergePolicy()
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 |
setMergePolicy(String mergePolicy)
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 WanReplicationRefReadOnly getAsReadOnly()
public String getName()
public WanReplicationRef setName(String name)
name
- the reference namepublic String getMergePolicy()
public WanReplicationRef setMergePolicy(String mergePolicy)
mergePolicy
- the merge policypublic WanReplicationRef addFilter(String filter)
NOTE: EE only
filter
- the class namepublic List<String> getFilters()
NOTE: EE only
public WanReplicationRef setFilters(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 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 © 2022 Hazelcast, Inc.. All Rights Reserved.