Package com.hazelcast.config
Class WanCustomPublisherConfig
java.lang.Object
com.hazelcast.config.AbstractWanPublisherConfig
com.hazelcast.config.WanCustomPublisherConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Configuration object for a custom WAN publisher. A single publisher defines
how WAN events are sent to a specific publisher.
The publisher can be some other external system which is not a Hazelcast
cluster (e.g. JMS queue).
-
Field Summary
Fields inherited from class com.hazelcast.config.AbstractWanPublisherConfig
className, implementation, properties, publisherId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.Returns the publisher ID used for identifying the publisher in aWanReplicationConfig.setClassName(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.toString()Methods inherited from class com.hazelcast.config.AbstractWanPublisherConfig
equals, getClassName, getImplementation, getProperties, hashCode, readData, writeData
-
Constructor Details
-
WanCustomPublisherConfig
public WanCustomPublisherConfig()
-
-
Method Details
-
toString
-
getPublisherId
Description copied from class:AbstractWanPublisherConfigReturns the publisher ID used for identifying the publisher in aWanReplicationConfig.- Overrides:
getPublisherIdin classAbstractWanPublisherConfig- Returns:
- the WAN publisher ID or
nullif no publisher ID is set
-
setPublisherId
Description copied from class:AbstractWanPublisherConfigSets the publisher ID used for identifying the publisher in aWanReplicationConfig.- Overrides:
setPublisherIdin classAbstractWanPublisherConfig- Parameters:
publisherId- the WAN publisher ID- Returns:
- this config
-
setProperties
Description copied from class:AbstractWanPublisherConfigSets the WAN publisher properties.- Overrides:
setPropertiesin classAbstractWanPublisherConfig- Parameters:
properties- WAN publisher properties- Returns:
- this config
-
setClassName
Description copied from class:AbstractWanPublisherConfigSets the name of the class implementingWanPublisher. To configure the built-in WanBatchReplication, please useWanBatchPublisherConfigconfig class.- Overrides:
setClassNamein classAbstractWanPublisherConfig- Parameters:
className- the name of the class implementation for the WAN replication- Returns:
- this config
-
setImplementation
Description copied from class:AbstractWanPublisherConfigSets the implementation ofWanPublisher.- Overrides:
setImplementationin classAbstractWanPublisherConfig- Parameters:
implementation- the implementation for the WAN replication- Returns:
- this config
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Returns:
- type ID
-