Class AbstractWanPublisherConfig

java.lang.Object
com.hazelcast.config.AbstractWanPublisherConfig
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable
Direct Known Subclasses:
WanBatchPublisherConfig, WanCustomPublisherConfig

public abstract class AbstractWanPublisherConfig extends Object implements IdentifiedDataSerializable
Base class for WAN publisher configuration.
  • Field Details

  • Constructor Details

    • AbstractWanPublisherConfig

      public AbstractWanPublisherConfig()
  • Method Details

    • getPublisherId

      public String getPublisherId()
      Returns the publisher ID used for identifying the publisher in a WanReplicationConfig.
      Returns:
      the WAN publisher ID or null if no publisher ID is set
    • setPublisherId

      public AbstractWanPublisherConfig setPublisherId(String publisherId)
      Sets the publisher ID used for identifying the publisher in a WanReplicationConfig.
      Parameters:
      publisherId - the WAN publisher ID
      Returns:
      this config
    • getProperties

      @Nonnull public Map<String,Comparable> getProperties()
      Returns the WAN publisher properties.
    • setProperties

      public AbstractWanPublisherConfig setProperties(@Nonnull Map<String,Comparable> properties)
      Sets the WAN publisher properties.
      Parameters:
      properties - WAN publisher properties
      Returns:
      this config
    • getClassName

      public String getClassName()
      Returns the name of the class implementing WanPublisher.
    • setClassName

      public AbstractWanPublisherConfig setClassName(@Nonnull String className)
      Sets the name of the class implementing WanPublisher. To configure the built in WanBatchReplication, please use WanBatchPublisherConfig config class.
      Parameters:
      className - the name of the class implementation for the WAN replication
      Returns:
      this config
    • getImplementation

      public WanPublisher getImplementation()
      Returns the implementation of WanPublisher.
    • setImplementation

      public AbstractWanPublisherConfig setImplementation(@Nonnull WanPublisher implementation)
      Sets the implementation of WanPublisher.
      Parameters:
      implementation - the implementation for the WAN replication
      Returns:
      this config
    • writeData

      public void writeData(ObjectDataOutput out) throws IOException
      Description copied from interface: DataSerializable
      Writes object fields to output stream
      Specified by:
      writeData in interface DataSerializable
      Parameters:
      out - output
      Throws:
      IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
    • readData

      public void readData(ObjectDataInput in) throws IOException
      Description copied from interface: DataSerializable
      Reads fields from the input stream
      Specified by:
      readData in interface DataSerializable
      Parameters:
      in - input
      Throws:
      IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object