Table of Contents

Class GridConnection

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

Represents connection(s) to one or more servers in a ScaleOut in-memory data grid. A GridConnection instance is thread-safe, long-lived, and maintains a pool of TCP connections to ScaleOut hosts. Multiple Cache<TKey, TValue> instances should use the same GridConnection instance if they are connecting to the same ScaleOut cluster.

public class GridConnection
Inheritance
GridConnection
Inherited Members

Properties

ConnectionString

String containing parameters for connecting to the ScaleOut host(s) in an in-memory data grid.

Methods

Connect(string)

Connects to a ScaleOut in-memory data grid, returning a GridConnection instance that can be used with a CacheBuilder<TKey, TValue> to access objects in the ScaleOut service.

Connect(string, BootstrapGatewayProvider)

Connects to a ScaleOut in-memory data grid, returning a GridConnection instance that can be used with a CacheBuilder<TKey, TValue> to access objects in the ScaleOut service.

ConnectAsync(string)

Connects to a ScaleOut in-memory data grid, returning a GridConnection instance that can be used with a CacheBuilder<TKey, TValue> to access objects in the ScaleOut service.

ConnectAsync(string, BootstrapGatewayProvider)

Connects to a ScaleOut in-memory data grid, returning a GridConnection instance that can be used with a CacheBuilder<TKey, TValue> to access objects in the ScaleOut service.

GetCacheInfo(CancellationToken)

Retrieves information and statistics about every cache in the ScaleOut service associated with this GridConnection instance. The returned list of CacheInfo objects is refreshed at most every 15 seconds.

GetCacheInfoAsync(CancellationToken)

Retrieves information and statistics about every cache in the ScaleOut service associated with this GridConnection instance. The returned list of CacheInfo objects is refreshed at most every 15 seconds.

GetCacheNamesAsync(CancellationToken)

Retrieves a list of all cache names in the ScaleOut service associated with this GridConnection instance.

SetLoggerFactory(ILoggerFactory)

Sets an ILoggerFactory to be used by the library for logging. This method should be called at most once at application startup, prior to making Connect(string) or ConnectAsync(string) calls.