Click or drag to resize
IRiakAsyncClientGet Method (RiakObjectId, RiakGetOptions)
Retrieve the specified object from Riak.

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
Task<RiakResult<RiakObject>> Get(
	RiakObjectId objectId,
	RiakGetOptions options = null
)

Parameters

objectId
Type: RiakClient.ModelsRiakObjectId
Object identifier made up of a key, bucket, and bucket type. RiakObjectId
options (Optional)
Type: RiakClient.ModelsRiakGetOptions
The RiakGetOptions responsible for configuring the semantics of this single get request. These options will override any previously defined bucket configuration properties.

Return Value

Type: TaskRiakResultRiakObject
A TaskTResult, that will contain a RiakResultTResult, which will contain the found RiakObject.
Remarks
If a node does not respond, that does not necessarily mean that the objectId is not available. It simply means that fewer than rVal nodes responded to the read request. Unfortunately, the Riak API does not allow us to distinguish between a 404 resulting from less than rVal nodes successfully responding and an objectId not being found in Riak.
See Also