ShardMapManagerFactory.tryGetSqlShardMapManager Method

Definition

Overloads

tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, EventHandler<RetryingEventArgs> retryEventHandler, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

public static boolean tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Parameters

connectionString
String

Connection parameters used for performing operations against shard map manager database(s).

loadPolicy
ShardMapManagerLoadPolicy

Initialization policy.

shardMapManager
ReferenceObjectHelper<ShardMapManager>

Shard map manager object used for performing management and read operations for shard maps, shards and shard mappings or null in case shard map manager does not exist.

Returns

boolean

true if a shard map manager object was created, false otherwise.

tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, EventHandler<RetryingEventArgs> retryEventHandler, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

public static boolean tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, EventHandler<RetryingEventArgs> retryEventHandler, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Parameters

connectionString
String

Connection parameters used for performing operations against shard map manager database(s).

loadPolicy
ShardMapManagerLoadPolicy

Initialization policy.

retryBehavior
RetryBehavior

Behavior for detecting transient exceptions in the store.

retryEventHandler
EventHandler<RetryingEventArgs>

Event handler for store operation retry events.

shardMapManager
ReferenceObjectHelper<ShardMapManager>

Shard map manager object used for performing management and read operations for shard maps, shards and shard mappings or null in case shard map manager does not exist.

Returns

boolean

true if a shard map manager object was created, false otherwise.

tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Gets ShardMapManager from persisted state in a SQL Server database.

public static boolean tryGetSqlShardMapManager(String connectionString, ShardMapManagerLoadPolicy loadPolicy, RetryBehavior retryBehavior, ReferenceObjectHelper<ShardMapManager> shardMapManager)

Parameters

connectionString
String

Connection parameters used for performing operations against shard map manager database(s).

loadPolicy
ShardMapManagerLoadPolicy

Initialization policy.

retryBehavior
RetryBehavior

Behavior for detecting transient exceptions in the store.

shardMapManager
ReferenceObjectHelper<ShardMapManager>

Shard map manager object used for performing management and read operations for shard maps, shards and shard mappings or null in case shard map manager does not exist.

Returns

boolean

true if a shard map manager object was created, false otherwise.

Applies to