Package com.hazelcast.config
Class AbstractWanPublisherConfig
java.lang.Object
com.hazelcast.config.AbstractWanPublisherConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
- Direct Known Subclasses:
WanBatchPublisherConfig
,WanCustomPublisherConfig
public abstract class AbstractWanPublisherConfig extends Object implements IdentifiedDataSerializable
Base class for WAN publisher configuration.
-
Field Summary
Fields Modifier and Type Field Description protected String
className
protected WanPublisher
implementation
protected Map<String,Comparable>
properties
protected String
publisherId
-
Constructor Summary
Constructors Constructor Description AbstractWanPublisherConfig()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
String
getClassName()
Returns the name of the class implementingWanPublisher
.WanPublisher
getImplementation()
Returns the implementation ofWanPublisher
.Map<String,Comparable>
getProperties()
Returns the WAN publisher properties.String
getPublisherId()
Returns the publisher ID used for identifying the publisher in aWanReplicationConfig
.int
hashCode()
void
readData(ObjectDataInput in)
Reads fields from the input streamAbstractWanPublisherConfig
setClassName(String className)
Sets the name of the class implementingWanPublisher
.AbstractWanPublisherConfig
setImplementation(WanPublisher implementation)
Sets the implementation ofWanPublisher
.AbstractWanPublisherConfig
setProperties(Map<String,Comparable> properties)
Sets the WAN publisher properties.AbstractWanPublisherConfig
setPublisherId(String publisherId)
Sets the publisher ID used for identifying the publisher in aWanReplicationConfig
.void
writeData(ObjectDataOutput out)
Writes object fields to output streamMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hazelcast.nio.serialization.IdentifiedDataSerializable
getClassId, getFactoryId
-
Field Details
-
Constructor Details
-
AbstractWanPublisherConfig
public AbstractWanPublisherConfig()
-
-
Method Details
-
getPublisherId
Returns the publisher ID used for identifying the publisher in aWanReplicationConfig
.- Returns:
- the WAN publisher ID or
null
if no publisher ID is set
-
setPublisherId
Sets the publisher ID used for identifying the publisher in aWanReplicationConfig
.- Parameters:
publisherId
- the WAN publisher ID- Returns:
- this config
-
getProperties
Returns the WAN publisher properties. -
setProperties
Sets the WAN publisher properties.- Parameters:
properties
- WAN publisher properties- Returns:
- this config
-
getClassName
Returns the name of the class implementingWanPublisher
. -
setClassName
Sets the name of the class implementingWanPublisher
. To configure the built in WanBatchReplication, please useWanBatchPublisherConfig
config class.- Parameters:
className
- the name of the class implementation for the WAN replication- Returns:
- this config
-
getImplementation
Returns the implementation ofWanPublisher
. -
setImplementation
Sets the implementation ofWanPublisher
.- Parameters:
implementation
- the implementation for the WAN replication- Returns:
- this config
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
equals
-
hashCode
public int hashCode()
-