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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected WanPublisherprotected Map<String,Comparable> protected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.inthashCode()voidReads 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.voidWrites object fields to output streamMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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
nullif 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 useWanBatchPublisherConfigconfig 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:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
equals
-
hashCode
public int hashCode()
-