org.idevlab.rjc.sharding
Interface Shard<T>

All Known Implementing Classes:
ShardImpl

public interface Shard<T>

Author:
Evgeny Dolgov

Method Summary
 T getNode()
          Underlying shard node
 String getShardId()
          Shard id
 int getWeight()
          Shard weight
 

Method Detail

getWeight

int getWeight()
Shard weight

Returns:
Shard weight

getShardId

String getShardId()
Shard id

Returns:
shard id, must not be null

getNode

T getNode()
Underlying shard node

Returns:
shard node


Copyright © 2011. All Rights Reserved.