public abstract class AbstractWanPublisherConfig extends Object implements IdentifiedDataSerializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected Object |
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
WanReplicationPublisher. |
Object |
getImplementation()
Returns the implementation of
WanReplicationPublisher. |
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
WanReplicationPublisher. |
AbstractWanPublisherConfig |
setImplementation(Object implementation)
Sets the implementation of
WanReplicationPublisher. |
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 Object 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()
WanReplicationPublisher.public AbstractWanPublisherConfig setClassName(String className)
WanReplicationPublisher.
To configure the built in WanBatchReplication, please use
WanBatchReplicationPublisherConfig config class.className - the name of the class implementation for the WAN replicationpublic Object getImplementation()
WanReplicationPublisher.public AbstractWanPublisherConfig setImplementation(Object implementation)
WanReplicationPublisher.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 © 2019 Hazelcast, Inc.. All rights reserved.