keep

public final void keep(TenantId id)

Stores the passed tenant ID in the index.

If there is an entity with the passed ID, the method quits. Otherwise, a new entity with the default state will be created and stored.

Parameters

id

the tenant ID to store