Tenant

public class Tenant

Class representing tenant used for getting queue statistics.

Constructors

Tenant

Tenant(TenantIdentity identity)

Constructor.

Parameters:
  • identity – the identity of created tenant

Methods

canHaveQueue

public boolean canHaveQueue(String queueName)

Checks whether tenant can have given queue.

Parameters:
  • queueName – the queue name to be checked
Returns:

true if tenant cant have given queue, false otherwise

current

public static Tenant current()

Returns current tenant.

Returns:the current tenant

getId

public String getId()

getSuffixedId

public String getSuffixedId()