Commanded.Middleware.Uniqueness.Adapter.claim

You're seeing just the callback claim, go back to Commanded.Middleware.Uniqueness.Adapter module for more information.
Link to this callback

claim(key, value, partition)

View Source

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.

Link to this callback

claim(key, value, owner, partition)

View Source

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.