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
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns type identifier for this class.int
Returns 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:AbstractWanPublisherConfig
Returns the publisher ID used for identifying the publisher in aWanReplicationConfig
.- Overrides:
getPublisherId
in classAbstractWanPublisherConfig
- Returns:
- the WAN publisher ID or
null
if no publisher ID is set
-
setPublisherId
Description copied from class:AbstractWanPublisherConfig
Sets the publisher ID used for identifying the publisher in aWanReplicationConfig
.- Overrides:
setPublisherId
in classAbstractWanPublisherConfig
- Parameters:
publisherId
- the WAN publisher ID- Returns:
- this config
-
setProperties
Description copied from class:AbstractWanPublisherConfig
Sets the WAN publisher properties.- Overrides:
setProperties
in classAbstractWanPublisherConfig
- Parameters:
properties
- WAN publisher properties- Returns:
- this config
-
setClassName
Description copied from class:AbstractWanPublisherConfig
Sets the name of the class implementingWanPublisher
. To configure the built in WanBatchReplication, please useWanBatchPublisherConfig
config class.- Overrides:
setClassName
in classAbstractWanPublisherConfig
- Parameters:
className
- the name of the class implementation for the WAN replication- Returns:
- this config
-
setImplementation
Description copied from class:AbstractWanPublisherConfig
Sets the implementation ofWanPublisher
.- Overrides:
setImplementation
in classAbstractWanPublisherConfig
- Parameters:
implementation
- the implementation for the WAN replication- Returns:
- this config
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Returns:
- type ID
-