Class DataStructureWriteOperation
- java.lang.Object
-
- com.alachisoft.ncache.runtime.datasourceprovider.WriteOperationBase
-
- com.alachisoft.ncache.runtime.datasourceprovider.DataStructureWriteOperation
-
public class DataStructureWriteOperation extends WriteOperationBase
Operation for operations on created collection
-
-
Constructor Summary
Constructors Constructor Description DataStructureWriteOperation()The default constructor for this class.DataStructureWriteOperation(java.lang.String key, DataStructureOperationType opType, int retryCount, DistributedDataStructureType dataType)WriteToCollectionOperation constructor which takes key, WriteOperationType and retries count.DataStructureWriteOperation(java.lang.String key, ProviderDataStructureItem<java.lang.Object> cacheItem, DataStructureOperationType opType, int retryCount)WriteCollectionOperation constructor which takes key, ProviderCache WriteOperationType and retries count.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedDataStructureTypegetDataType()Gets the type of the collection associated with DataStructureWriteOperation.DataStructureOperationTypegetOperationType()Gets the type of the write operation.ProviderDataStructureItem<java.lang.Object>getProviderItem()Gets the ProviderDataStructureItem associated with the DataStructureWriteOperation.voidsetDataType(DistributedDataStructureType value)Sets the type of the collection associated with DataStructureWriteOperation.voidsetOperationType(DataStructureOperationType value)Sets the type of the write operation.voidsetProviderItem(ProviderDataStructureItem<java.lang.Object> value)Sets the ProviderDataStructureItem associated with the DataStructureWriteOperation.voidsetRetryCount(int retryCount)-
Methods inherited from class com.alachisoft.ncache.runtime.datasourceprovider.WriteOperationBase
getKey, getMethodOverlaod, getRetryCount, setKey, setMethodOverlaod
-
-
-
-
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-DistributedDataStructureTypespecifying 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)
-
-