be.wegenenverkeer.atomium.server

FeedStore

Related Doc: package server

trait FeedStore[E, C <: Context] extends AnyRef

A feed store is responsible for the persistence of feeds.

E

type of the elements in the feed

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FeedStore
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getFeed(startSequenceNr: Long, count: Int, forward: Boolean)(implicit context: C): Option[Feed[E]]

    Retrieves a page of the feed.

    Retrieves a page of the feed.

    startSequenceNr

    the starting entry's sequence number (exclusive), should not be returned in the feed page

    count

    the number of entries to return in the feed page, can be less if page is incomplete

    forward

    if true navigate to 'previous' elements in feed (towards head of feed) else ('backward') navigate to 'next' elements in feed (towards last page of feed)

    returns

    the feed page or None if the page is not found

  2. abstract def getHeadOfFeed(pageSize: Int)(implicit context: C): Option[Feed[E]]

    Retrieves the head of the feed.

    Retrieves the head of the feed. This is the first page containing the most recent entries

    pageSize

    the maximum number of feed entries to return. The page could contain less entries

    returns

    the head of the feed

  3. abstract def push(uuid: String, entry: E)(implicit context: C): Unit

  4. abstract def push(entries: Iterable[E])(implicit context: C): Unit

    push a list of entries to the feed

    push a list of entries to the feed

    entries

    the entries to push to the feed

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    This method is called when the be.wegenenverkeer.atomium.server.FeedService is stopped.

  7. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. def open(): Unit

    This method is called when the be.wegenenverkeer.atomium.server.FeedService is started.

    This method is called when the be.wegenenverkeer.atomium.server.FeedService is started. This can be used as a hook (to check consistency, for example)

  17. def push(entry: E)(implicit context: C): Unit

    push a single entry to the feed

    push a single entry to the feed

    entry

    the entry to push to the feed

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped