tigase.workgroupqueues.data

## Interface Store

- All Superinterfaces:
    DataSourceAware<DataRepository>, Repository
  All Known Implementing Classes:
    JDBCWorkgroupQueuesRepository, MemoryStore, RepoPool

      public interface Store
      extends Repository, DataSourceAware<DataRepository>

  Interface for queue storage.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface tigase.db.Repository

      `Repository.Meta, Repository.SchemaId`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addWorkgroupQueue(WorkgroupQueueEntity queue)` Add queue entity to storage.
    `WorkgroupQueueEntity` | `getWorkgroupQueue(BareJID queueJID)` Loads queue entity from storage.
    `Collection<WorkgroupQueueEntity>` | `getWorkgroupQueues()` Returns collection of known queues.

    - ### Methods inherited from interface tigase.db.Repository

      `initRepository`

    - ### Methods inherited from interface tigase.db.DataSourceAware

      `setDataSource`

- - ### Method Detail

    - #### addWorkgroupQueue

          void addWorkgroupQueue(WorkgroupQueueEntity queue)

      Add queue entity to storage.
      Parameters:
        `queue` - queue to add.

    - #### getWorkgroupQueue

          WorkgroupQueueEntity getWorkgroupQueue(BareJID queueJID)

      Loads queue entity from storage.
      Parameters:
        `queueJID` - JID of queue.
      Returns:
        queue instance of `null` if queue doesn't exists.

    - #### getWorkgroupQueues

          Collection<WorkgroupQueueEntity> getWorkgroupQueues()

      Returns collection of known queues.
      Returns:
        collection of queues.

Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.