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
Modifier and TypeFieldDescriptionprotected String
protected WanPublisher
protected Map<String,
Comparable> protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the name of the class implementingWanPublisher
.Returns the implementation ofWanPublisher
.Returns the WAN publisher properties.Returns the publisher ID used for identifying the publisher in aWanReplicationConfig
.int
hashCode()
void
Reads fields from the input streamsetClassName
(String className) Sets the name of the class implementingWanPublisher
.setImplementation
(WanPublisher implementation) Sets the implementation ofWanPublisher
.setProperties
(Map<String, Comparable> properties) Sets the WAN publisher properties.setPublisherId
(String publisherId) Sets the publisher ID used for identifying the publisher in aWanReplicationConfig
.void
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
-
publisherId
-
className
-
implementation
-
properties
-
-
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()
-