Counter

public class Counter

Counter document which can be used to get an incremented sequence number per document id.

Fields

id

private String id

The id of the counter, e.g. „orders“.

seq

private long seq

The current sequence number.