Commanded.Middleware.Uniqueness.Adapter.claim
You're seeing just the callback
claim
, go back to Commanded.Middleware.Uniqueness.Adapter module for more information.
Specs
claim(key :: term(), value :: term(), partition :: term()) :: :ok | {:error, :already_exists} | {:error, :unknown_error}
Claims an key
, value
, partition
set
or reports that this combination has already been claimed.
Specs
claim(key :: term(), value :: term(), owner :: term(), partition :: term()) :: :ok | {:error, :already_exists} | {:error, :unknown_error}
Claims an key
, value
, owner
, partition
set
or reports that this combination has already been claimed.
If an key
, value
, owner
, partition
set has to be claimed
and an old value for the given owner exists it releases first.