Builder

object Builder(source)

Functions

Link copied to clipboard
inline operator fun invoke(crossinline block: (ShardConfiguration) -> Boolean): Sharding

Creates custom sharding strategy, that uses gateway default shard count

inline operator fun invoke(totalShards: Int, crossinline block: (ShardConfiguration) -> Boolean): Sharding

Creates custom sharding strategy, that uses supplied totalShards shards count