tigase.server.amp

## Class MsgRepository.MsgDBItem

- java.lang.Object
- - tigase.server.amp.MsgRepository.MsgDBItem

- All Implemented Interfaces:
    Comparable<Delayed>, Delayed
  Direct Known Subclasses:
    MsgRepository.BroadcastMsg
  Enclosing class:
    MsgRepository<T>

      protected class MsgRepository.MsgDBItem
      extends Object
      implements Delayed

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `T` | `db_id`
    `Date` | `expired`
    `Element` | `msg`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MsgDBItem(T db_id, Element msg, Date expired)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(Delayed o)`
    `long` | `getDelay(TimeUnit unit)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### db_id

          public final T db_id

    - #### expired

          public final Date expired

    - #### msg

          public final Element msg

  - ### Constructor Detail

    - #### MsgDBItem

          public MsgDBItem(T db_id,
                           Element msg,
                           Date expired)

  - ### Method Detail

    - #### compareTo

          public int compareTo(Delayed o)

      Specified by:
        `compareTo` in interface `Comparable<Delayed>`

    - #### getDelay

          public long getDelay(TimeUnit unit)

      Specified by:
        `getDelay` in interface `Delayed`

Copyright © 2022 "Tigase, Inc.". All rights reserved.