Class DataStructureWriteOperation


  • public class DataStructureWriteOperation
    extends WriteOperationBase
    Operation for operations on created collection
    • Constructor Detail

      • DataStructureWriteOperation

        public DataStructureWriteOperation()
        The default constructor for this class.
      • DataStructureWriteOperation

        public DataStructureWriteOperation​(java.lang.String key,
                                           DataStructureOperationType opType,
                                           int retryCount,
                                           DistributedDataStructureType dataType)
        WriteToCollectionOperation constructor which takes key, WriteOperationType and retries count.
        Parameters:
        key - key of an item on which operation has to be performed.
        opType - WriteOperationType that contains the type of the Operation that is need to be performed.
        retryCount - RetryCount is a count for how many times the retries are need to be performed for the FailureRetry items.
        dataType - DistributedDataStructureType specifying data type.
      • DataStructureWriteOperation

        public DataStructureWriteOperation​(java.lang.String key,
                                           ProviderDataStructureItem<java.lang.Object> cacheItem,
                                           DataStructureOperationType opType,
                                           int retryCount)
        WriteCollectionOperation constructor which takes key, ProviderCache WriteOperationType and retries count.
        Parameters:
        key - key of an item on which operation has to be performed.
        cacheItem - is a ProviderCollectionItem that contains the object on which operation is need to be performed.
        opType - WriteOperationType that contains the type of the Operation that is need to be performed.
        retryCount - RetryCount is a count for how many times the retries are need to be performed for the FailureRetry items.
    • Method Detail

      • getOperationType

        public final DataStructureOperationType getOperationType()
        Gets the type of the write operation.
        Returns:
        The DataStructureOperationType enum.
      • setOperationType

        public final void setOperationType​(DataStructureOperationType value)
        Sets the type of the write operation.
        Parameters:
        value - The DataStructureOperationType enum.
      • getProviderItem

        public final ProviderDataStructureItem<java.lang.Object> getProviderItem()
        Gets the ProviderDataStructureItem associated with the DataStructureWriteOperation.
        Returns:
        The ProviderDataStructureItem instance.
      • setProviderItem

        public final void setProviderItem​(ProviderDataStructureItem<java.lang.Object> value)
        Sets the ProviderDataStructureItem associated with the DataStructureWriteOperation.
        Parameters:
        value - The ProviderDataStructureItem instance.
      • getDataType

        public final DistributedDataStructureType getDataType()
        Gets the type of the collection associated with DataStructureWriteOperation.
        Returns:
        The DistributedDataStructureType enum.
      • setDataType

        public final void setDataType​(DistributedDataStructureType value)
        Sets the type of the collection associated with DataStructureWriteOperation.
        Parameters:
        value - The DistributedDataStructureType enum.
      • setRetryCount

        public void setRetryCount​(int retryCount)