Package 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`, `MsgRepository.MsgRepositoryMDBean.RepoAwareMsgDBItem`

Enclosing class:
  MsgRepository<T,S extends DataSource>

public static class MsgRepository.MsgDBItem<T> extends Object implements Delayed

- ## Field Summary

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

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### db_id

    public final T db_id

  - ### expired

    public final Date expired

  - ### msg

    public final Element msg

- ## Constructor Details

  - ### MsgDBItem

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

- ## Method Details

  - ### compareTo

    public int compareTo(Delayed o)
    Specified by:
      `compareTo` in interface `Comparable<T>`

  - ### getDelay

    public long getDelay(TimeUnit unit)
    Specified by:
      `getDelay` in interface `Delayed`