public class WanReplicationRef extends Object implements DataSerializable, Serializable
Constructor 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)
Add class name implementing the CacheWanEventFilter or MapWanEventFilter for filtering 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()
Return the list of class names implementing the CacheWanEventFilter or MapWanEventFilter for filtering WAN replication
events.
|
String |
getMergePolicy() |
String |
getName() |
int |
hashCode() |
boolean |
isRepublishingEnabled() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
WanReplicationRef |
setFilters(List<String> filters)
Set the list of class names implementing the CacheWanEventFilter or MapWanEventFilter for filtering WAN replication
events.
|
WanReplicationRef |
setMergePolicy(String mergePolicy) |
WanReplicationRef |
setName(String name) |
WanReplicationRef |
setRepublishingEnabled(boolean republishEnabled) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public WanReplicationRef()
public WanReplicationRef(String name, String mergePolicy, List<String> filters, boolean republishingEnabled)
public WanReplicationRef(WanReplicationRef ref)
public WanReplicationRefReadOnly getAsReadOnly()
public String getName()
public WanReplicationRef setName(String name)
public String getMergePolicy()
public WanReplicationRef setMergePolicy(String mergePolicy)
public WanReplicationRef addFilter(String filter)
filter
- the class namepublic List<String> getFilters()
public WanReplicationRef setFilters(List<String> filters)
filters
- the list of class names implementing CacheWanEventFilter or MapWanEventFilterpublic boolean isRepublishingEnabled()
public WanReplicationRef setRepublishingEnabled(boolean republishEnabled)
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.