public class CustomWanPublisherConfig extends AbstractWanPublisherConfig
className, implementation, properties, publisherId
Constructor and Description |
---|
CustomWanPublisherConfig() |
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 . |
CustomWanPublisherConfig |
setClassName(String className)
Sets the name of the class implementing
WanReplicationPublisher . |
CustomWanPublisherConfig |
setImplementation(Object implementation)
Sets the implementation of
WanReplicationPublisher . |
CustomWanPublisherConfig |
setProperties(Map<String,Comparable> properties)
Sets the WAN publisher properties.
|
CustomWanPublisherConfig |
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 CustomWanPublisherConfig setPublisherId(@Nonnull String publisherId)
AbstractWanPublisherConfig
WanReplicationConfig
.setPublisherId
in class AbstractWanPublisherConfig
publisherId
- the WAN publisher IDpublic CustomWanPublisherConfig setProperties(@Nonnull Map<String,Comparable> properties)
AbstractWanPublisherConfig
setProperties
in class AbstractWanPublisherConfig
properties
- WAN publisher propertiespublic CustomWanPublisherConfig setClassName(String className)
AbstractWanPublisherConfig
WanReplicationPublisher
.
To configure the built in WanBatchReplication, please use
WanBatchReplicationPublisherConfig
config class.setClassName
in class AbstractWanPublisherConfig
className
- the name of the class implementation for the WAN replicationpublic CustomWanPublisherConfig setImplementation(Object implementation)
AbstractWanPublisherConfig
WanReplicationPublisher
.setImplementation
in class AbstractWanPublisherConfig
implementation
- the implementation for the WAN replicationpublic int getFactoryId()
IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
Copyright © 2019 Hazelcast, Inc.. All rights reserved.