public class WanCustomPublisherConfig extends AbstractWanPublisherConfig
className, implementation, properties, publisherId
Constructor and Description |
---|
WanCustomPublisherConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
String |
getPublisherId()
Returns the publisher ID used for identifying the publisher in a
WanReplicationConfig . |
WanCustomPublisherConfig |
setClassName(String className)
Sets the name of the class implementing
WanPublisher . |
WanCustomPublisherConfig |
setImplementation(WanPublisher implementation)
Sets the implementation of
WanPublisher . |
WanCustomPublisherConfig |
setProperties(Map<String,Comparable> properties)
Sets the WAN publisher properties.
|
WanCustomPublisherConfig |
setPublisherId(String publisherId)
Sets the publisher ID used for identifying the publisher in a
WanReplicationConfig . |
String |
toString() |
equals, getClassName, getImplementation, getProperties, hashCode, readData, writeData
@Nonnull public String getPublisherId()
AbstractWanPublisherConfig
WanReplicationConfig
.getPublisherId
in class AbstractWanPublisherConfig
null
if no publisher ID is setpublic WanCustomPublisherConfig setPublisherId(@Nonnull String publisherId)
AbstractWanPublisherConfig
WanReplicationConfig
.setPublisherId
in class AbstractWanPublisherConfig
publisherId
- the WAN publisher IDpublic WanCustomPublisherConfig setProperties(@Nonnull Map<String,Comparable> properties)
AbstractWanPublisherConfig
setProperties
in class AbstractWanPublisherConfig
properties
- WAN publisher propertiespublic WanCustomPublisherConfig setClassName(@Nonnull String className)
AbstractWanPublisherConfig
WanPublisher
.
To configure the built in WanBatchReplication, please use
WanBatchPublisherConfig
config class.setClassName
in class AbstractWanPublisherConfig
className
- the name of the class implementation for the WAN replicationpublic WanCustomPublisherConfig setImplementation(@Nonnull WanPublisher implementation)
AbstractWanPublisherConfig
WanPublisher
.setImplementation
in class AbstractWanPublisherConfig
implementation
- the implementation for the WAN replicationpublic int getFactoryId()
IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
Copyright © 2023 Hazelcast, Inc.. All rights reserved.