public abstract class AbstractWanPublisherConfig extends Object implements IdentifiedDataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected WanPublisher |
implementation |
protected Map<String,Comparable> |
properties |
protected String |
publisherId |
| Constructor and Description |
|---|
AbstractWanPublisherConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getClassName()
Returns the name of the class implementing
WanPublisher. |
WanPublisher |
getImplementation()
Returns the implementation of
WanPublisher. |
Map<String,Comparable> |
getProperties()
Returns the WAN publisher properties.
|
String |
getPublisherId()
Returns the publisher ID used for identifying the publisher in a
WanReplicationConfig. |
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
AbstractWanPublisherConfig |
setClassName(String className)
Sets the name of the class implementing
WanPublisher. |
AbstractWanPublisherConfig |
setImplementation(WanPublisher implementation)
Sets the implementation of
WanPublisher. |
AbstractWanPublisherConfig |
setProperties(Map<String,Comparable> properties)
Sets the WAN publisher properties.
|
AbstractWanPublisherConfig |
setPublisherId(String publisherId)
Sets the publisher ID used for identifying the publisher in a
WanReplicationConfig. |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetClassId, getFactoryIdprotected String publisherId
protected String className
protected WanPublisher implementation
protected Map<String,Comparable> properties
public String getPublisherId()
WanReplicationConfig.null if no publisher ID is setpublic AbstractWanPublisherConfig setPublisherId(String publisherId)
WanReplicationConfig.publisherId - the WAN publisher ID@Nonnull public Map<String,Comparable> getProperties()
public AbstractWanPublisherConfig setProperties(@Nonnull Map<String,Comparable> properties)
properties - WAN publisher propertiespublic String getClassName()
WanPublisher.public AbstractWanPublisherConfig setClassName(@Nonnull String className)
WanPublisher.
To configure the built in WanBatchReplication, please use
WanBatchPublisherConfig config class.className - the name of the class implementation for the WAN replicationpublic WanPublisher getImplementation()
WanPublisher.public AbstractWanPublisherConfig setImplementation(@Nonnull WanPublisher implementation)
WanPublisher.implementation - the implementation for the WAN replicationpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All rights reserved.