com.hazelcast.concurrent.atomicreference.operations

## Class SetOperation

- java.lang.Object
- - com.hazelcast.spi.Operation
  - - com.hazelcast.concurrent.atomicreference.operations.AbstractAtomicReferenceOperation
    - - com.hazelcast.concurrent.atomicreference.operations.AtomicReferenceBackupAwareOperation
      - - com.hazelcast.concurrent.atomicreference.operations.SetOperation

- All Implemented Interfaces:
    DataSerializable, IdentifiedDataSerializable, BackupAwareOperation, com.hazelcast.spi.impl.MutatingOperation, NamedOperation, PartitionAwareOperation

      public class SetOperation
      extends AtomicReferenceBackupAwareOperation
      implements com.hazelcast.spi.impl.MutatingOperation

- - ### Field Summary

    - ### Fields inherited from class com.hazelcast.concurrent.atomicreference.operations.AtomicReferenceBackupAwareOperation

      `shouldBackup`

    - ### Fields inherited from class com.hazelcast.concurrent.atomicreference.operations.AbstractAtomicReferenceOperation

      `name`

    - ### Fields inherited from class com.hazelcast.spi.Operation

      `GENERIC_PARTITION_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SetOperation()`
    `SetOperation(String name, Data newValue)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Operation` | `getBackupOperation()` Creates the `BackupOperation` responsible for making the backup.
    `int` | `getId()` Returns type identifier for this class.
    `protected void` | `readInternal(ObjectDataInput in)`
    `void` | `run()`
    `protected void` | `writeInternal(ObjectDataOutput out)`

    - ### Methods inherited from class com.hazelcast.concurrent.atomicreference.operations.AtomicReferenceBackupAwareOperation

      `getAsyncBackupCount, getSyncBackupCount, shouldBackup`

    - ### Methods inherited from class com.hazelcast.concurrent.atomicreference.operations.AbstractAtomicReferenceOperation

      `getFactoryId, getName, getReferenceContainer, getServiceName, toString`

    - ### Methods inherited from class com.hazelcast.spi.Operation

      `afterRun, beforeRun, call, executedLocally, getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getInvocationTime, getLogger, getNodeEngine, getOperationResponseHandler, getPartitionId, getReplicaIndex, getResponse, getService, getWaitTimeout, isUrgent, logError, onExecutionFailure, onInvocationException, onSetCallId, readData, returnsResponse, sendResponse, setCallerUuid, setNodeEngine, setOperationResponseHandler, setPartitionId, setReplicaIndex, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData`

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

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

    - ### Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation

      `getPartitionId`

    - ### Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable

      `readData, writeData`

- - ### Constructor Detail

    - #### SetOperation

          public SetOperation()

    - #### SetOperation

          public SetOperation(String name,
                              Data newValue)

  - ### Method Detail

    - #### run

          public void run()
                   throws Exception

      Overrides:
        `run` in class `Operation`
      Throws:
        `Exception`

    - #### getBackupOperation

          public Operation getBackupOperation()

      Description copied from interface: `BackupAwareOperation`
      Creates the `BackupOperation` responsible for making the backup.
      Specified by:
        `getBackupOperation` in interface `BackupAwareOperation`
      Returns:
        the created `BackupOperation` responsible for making the backup.

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

    - #### writeInternal

          protected void writeInternal(ObjectDataOutput out)
                                throws IOException

      Overrides:
        `writeInternal` in class `AbstractAtomicReferenceOperation`
      Throws:
        `IOException`

    - #### readInternal

          protected void readInternal(ObjectDataInput in)
                               throws IOException

      Overrides:
        `readInternal` in class `AbstractAtomicReferenceOperation`
      Throws:
        `IOException`

Copyright © 2018. All rights reserved.