Click or drag to resize
RiakClientDtUpdateCounter Method (RiakObjectId, Int64, RiakDtUpdateOptions)

Note: This API is now obsolete.

Update a Counter Data Type object at the provided address.

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
[ObsoleteAttribute("RiakDt is deprecated. Please use Commands/CRDT namespace.")]
public RiakCounterResult DtUpdateCounter(
	RiakObjectId objectId,
	long amount,
	RiakDtUpdateOptions options = null
)

Parameters

objectId
Type: RiakClient.ModelsRiakObjectId
The RiakObjectId of the counter to update.
amount
Type: SystemInt64
The delta to apply to the counter. To add 1 to the counter, use "1". To subtract 5, use "-5".
options (Optional)
Type: RiakClient.ModelsRiakDtUpdateOptions
The RiakDtUpdateOptions responsible for configuring the semantics of this data type update request.

Return Value

Type: RiakCounterResult
A RiakCounterResult detailing the operation result and current counter value.

Implements

IRiakBatchClientDtUpdateCounter(RiakObjectId, Int64, RiakDtUpdateOptions)
See Also