public abstract XAConnectionBuilder shardingKey (ShardingKey shardingKey)

Specifies a shardingKey to be used when creating a connection

Parameters:
shardingKey    the ShardingKey. May be null

Returns:  the same XAConnectionBuilder instance

See also:
java.sql.ShardingKey, java.sql.ShardingKeyBuilder