com.hazelcast.config
Class WanReplicationRef

java.lang.Object
  extended by com.hazelcast.config.WanReplicationRef
All Implemented Interfaces:
DataSerializable, Serializable
Direct Known Subclasses:
WanReplicationRefReadOnly

public class WanReplicationRef
extends Object
implements DataSerializable, Serializable

Configuration for Wan target replication reference

See Also:
Serialized Form

Constructor Summary
WanReplicationRef()
           
WanReplicationRef(String name, String mergePolicy, boolean republishingEnabled)
           
WanReplicationRef(WanReplicationRef ref)
           
 
Method Summary
 WanReplicationRefReadOnly getAsReadOnly()
           
 String getMergePolicy()
           
 String getName()
           
 boolean isRepublishingEnabled()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 WanReplicationRef setMergePolicy(String mergePolicy)
           
 WanReplicationRef setName(String name)
           
 WanReplicationRef setRepublishingEnabled(boolean republishEnabled)
           
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WanReplicationRef

public WanReplicationRef()

WanReplicationRef

public WanReplicationRef(String name,
                         String mergePolicy,
                         boolean republishingEnabled)

WanReplicationRef

public WanReplicationRef(WanReplicationRef ref)
Method Detail

getAsReadOnly

public WanReplicationRefReadOnly getAsReadOnly()

getName

public String getName()

setName

public WanReplicationRef setName(String name)

getMergePolicy

public String getMergePolicy()

setMergePolicy

public WanReplicationRef setMergePolicy(String mergePolicy)

isRepublishingEnabled

public boolean isRepublishingEnabled()

setRepublishingEnabled

public WanReplicationRef setRepublishingEnabled(boolean republishEnabled)

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.