tigase.server.amp.db

## Class MsgRepository.MsgDBItem<T>

- java.lang.Object
- - tigase.server.amp.db.MsgRepository.MsgDBItem<T>

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

      public static class MsgRepository.MsgDBItem<T>
      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 © 2004–2020 "Tigase, Inc.". All rights reserved.