次の方法で共有


IShardProvider<ValueT> Interface

Type Parameters

ValueT

public interface IShardProvider

Represents capabilities to provide a Shard along with an associated value.

Method Summary

Modifier and Type Method and Description
Shard getShardInfo()

Shard for the ShardProvider object.

ValueT getValue()

Value corresponding to the Shard. Represents traits of the Shard object provided by the ShardInfo property.

void validate(StoreShardMap shardMap, Connection conn)

Performs validation that the local representation is as up-to-date as the representation on the backing data store.

Callable validateAsync(StoreShardMap shardMap, Connection conn)

Asynchronously performs validation that the local representation is as up-to-date as the representation on the backing data store.

Method Details

getShardInfo

public Shard getShardInfo()

Shard for the ShardProvider object.

getValue

public ValueT getValue()

Value corresponding to the Shard. Represents traits of the Shard object provided by the ShardInfo property.

validate

public void validate(StoreShardMap shardMap, Connection conn)

Performs validation that the local representation is as up-to-date as the representation on the backing data store.

Parameters:

shardMap - Shard map to which the shard provider belongs.
conn - Connection used for validation.

validateAsync

public Callable validateAsync(StoreShardMap shardMap, Connection conn)

Asynchronously performs validation that the local representation is as up-to-date as the representation on the backing data store.

Parameters:

shardMap - Shard map to which the shard provider belongs.
conn - Connection used for validation.

Returns:

A task to await validation completion

Applies to