Click or drag to resize
RiakCluster Class
Represents a collection of RiakEndPoints. Allows operations to be performed using an endpoint's connection. Also supported rudimentary load balancing between multiple nodes.
Inheritance Hierarchy

Namespace:  RiakClient
Assembly:  RiakClient (in RiakClient.dll) Version: f9bb17a3f8ff6940b88010a52f202e3d55fe25c5
Syntax
public class RiakCluster : RiakEndPoint

The RiakCluster type exposes the following members.

Constructors
  NameDescription
Public methodRiakCluster(IRiakClusterConfiguration)
Initializes a new instance of the RiakCluster class using the default connection factory.
Public methodRiakCluster(IRiakClusterConfiguration, IRiakConnectionFactory)
Initializes a new instance of the RiakCluster class.
Top
Properties
  NameDescription
Protected propertyDefaultRetryCount
The max number of retry attempts to make when the client encounters ResultCode.NoConnections or ResultCode.CommunicationError errors.
(Overrides RiakEndPointDefaultRetryCount.)
Public propertyRetryWaitTime
Represents the TimeSpan to wait inbetween retry attempts.
(Inherited from RiakEndPoint.)
Top
Methods
  NameDescription
Public methodCreateClient
Creates a new instance of RiakClient.
(Inherited from RiakEndPoint.)
Public methodDispose
Releases all resources used by the RiakEndPoint class.
(Inherited from RiakEndPoint.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the RiakCluster and optionally releases the managed resources
(Overrides RiakEndPointDispose(Boolean).)
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 methodStatic memberFromConfig(String)
Creates an instance of IRiakClient populated from from the configuration section specified by configSectionName.
Public methodStatic memberFromConfig(String, String)
Creates an instance of IRiakClient populated from from the configuration section specified by configSectionName.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
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 methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUseConnection(FuncIRiakConnection, RiakResult, Int32)
Executes a delegate function using a IRiakConnection, and returns the results. Retries if possible for certain error states.
(Inherited from RiakEndPoint.)
Public methodUseConnectionTResult(FuncIRiakConnection, RiakResultTResult, Int32)
Executes a delegate function using a IRiakConnection, and returns the results. Retries if possible for certain error states.
(Inherited from RiakEndPoint.)
Protected methodUseConnectionTRiakResult(FuncIRiakConnection, TRiakResult, FuncResultCode, String, Boolean, TRiakResult, Int32) (Overrides RiakEndPointUseConnectionTRiakResult(FuncIRiakConnection, TRiakResult, FuncResultCode, String, Boolean, TRiakResult, Int32).)
Protected methodUseConnectionTRiakResult(FuncIRiakConnection, TRiakResult, FuncResultCode, String, Boolean, TRiakResult, Int32) (Inherited from RiakEndPoint.)
Public methodUseDelayedConnectionTResult(FuncIRiakConnection, Action, RiakResultIEnumerableTResult, Int32)
Executes a delegate function using a IRiakConnection, and returns the results. Can retry up to "retryAttempts" times for NoRetries and ShuttingDown error states. This method is used over UseConnection(FuncIRiakConnection, RiakResult, Int32) to keep a connection open to receive streaming results.
(Overrides RiakEndPointUseDelayedConnectionTResult(FuncIRiakConnection, Action, RiakResultIEnumerableTResult, Int32).)
Public methodUseDelayedConnectionTResult(FuncIRiakConnection, Action, RiakResultIEnumerableTResult, Int32)
Executes a delegate function using a IRiakConnection, and returns the results. Retries if possible for certain error states. This method is used over UseConnection(FuncIRiakConnection, RiakResult, Int32) to keep a connection open to receive streaming results.
(Inherited from RiakEndPoint.)
Top
See Also