Click or drag to resize
UpdateCounter Class
Command used to update a Counter in Riak. As a convenience, a builder method is provided as well as an object with a fluent API for constructing the update. See UpdateCounterBuilder
var update = new UpdateCounter.Builder(10)
          .WithBucketType("maps")
          .WithBucket("myBucket")
          .WithKey("map_1")
          .WithReturnBody(true)
          .Build();
Inheritance Hierarchy
SystemObject
  RiakClient.CommandsCommandCounterResponse
    RiakClient.CommandsCommandUpdateCommandOptions, CounterResponse
      RiakClient.Commands.CRDTUpdateCommandCounterResponse
        RiakClient.Commands.CRDTUpdateCounter

Namespace:  RiakClient.Commands.CRDT
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
public class UpdateCounter : UpdateCommand<CounterResponse>

The UpdateCounter type exposes the following members.

Constructors
  NameDescription
Public methodUpdateCounter
Initializes a new instance of the UpdateCounter class.
Top
Properties
Methods
  NameDescription
Public methodConstructRequest (Inherited from UpdateCommandTResponse.)
Protected methodCreateResponse (Overrides UpdateCommandTResponseCreateResponse(DtUpdateResp).)
Public methodDecodeResponse (Inherited from CommandTResponse.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetKey (Inherited from CommandTOptions, TResponse.)
Protected methodGetRequestOp (Overrides UpdateCommandTResponseGetRequestOp.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnSuccess (Inherited from UpdateCommandTResponse.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
See Also