subscribe

public void subscribe(ShardObserver observer)

Subscribes to the updates of shard contents.

The passed observer will be notified that the contents of a shard with a particular index were changed.

Parameters

observer

an observer to notify of updates.