com.hazelcast.wan

## Class WanReplicationEvent

- java.lang.Object
- - com.hazelcast.wan.WanReplicationEvent

- All Implemented Interfaces:
    DataSerializable, IdentifiedDataSerializable

      public class WanReplicationEvent
      extends Object
      implements IdentifiedDataSerializable

  Event class used to transmit the actual event object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `WanReplicationEvent()`
    `WanReplicationEvent(String serviceName, ReplicationEventObject eventObject)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `WanAcknowledgeType` | `getAcknowledgeType()`
    `ReplicationEventObject` | `getEventObject()` Gets the event object.
    `int` | `getFactoryId()` Returns DataSerializableFactory factory ID for this class.
    `int` | `getId()` Returns type identifier for this class.
    `String` | `getServiceName()` Returns the service name for this event object.
    `void` | `readData(ObjectDataInput in)` Reads fields from the input stream
    `void` | `setAcknowledgeType(WanAcknowledgeType acknowledgeType)`
    `void` | `setEventObject(ReplicationEventObject eventObject)` Sets the event object.
    `void` | `setServiceName(String serviceName)` Sets the service name for this event object.
    `void` | `writeData(ObjectDataOutput out)` Writes object fields to output stream

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WanReplicationEvent

          public WanReplicationEvent()

    - #### WanReplicationEvent

          public WanReplicationEvent(String serviceName,
                                     ReplicationEventObject eventObject)

  - ### Method Detail

    - #### getServiceName

          public String getServiceName()

      Returns the service name for this event object.
      Returns:
        the service name for this event object.

    - #### setServiceName

          public void setServiceName(String serviceName)

      Sets the service name for this event object.
      Parameters:
        `serviceName` - the service name for this event object.

    - #### getEventObject

          public ReplicationEventObject getEventObject()

      Gets the event object.
      Returns:
        the event object.

    - #### setEventObject

          public void setEventObject(ReplicationEventObject eventObject)

      Sets the event object.
      Parameters:
        `eventObject` - the event object.

    - #### getAcknowledgeType

          public WanAcknowledgeType getAcknowledgeType()

    - #### setAcknowledgeType

          public void setAcknowledgeType(WanAcknowledgeType acknowledgeType)

    - #### 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.

    - #### getFactoryId

          public int getFactoryId()

      Description copied from interface: `IdentifiedDataSerializable`
      Returns DataSerializableFactory factory ID for this class.
      Specified by:
        `getFactoryId` in interface `IdentifiedDataSerializable`
      Returns:
        factory ID

    - #### getId

          public int getId()

      Description copied from interface: `IdentifiedDataSerializable`
      Returns type identifier for this class. It should be unique per DataSerializableFactory.
      Specified by:
        `getId` in interface `IdentifiedDataSerializable`
      Returns:
        type ID

Copyright © 2019. All rights reserved.