be.wegenenverkeer.atomium.server

FeedService

Related Doc: package server

class FeedService[E, C <: Context] extends AnyRef

A feed service provides the following functionality: - push new entries to the feed - get a page from the feed

E

the type of the feed entries

C

the type of the context, which is required for feed stores

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

Instance Constructors

  1. new FeedService(entriesPerPage: Int, feedStore: FeedStore[E, C])

    entriesPerPage

    the number of entries per page

    feedStore

    a feed store

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. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  10. def getFeedPage(startSequenceNr: Long, pageSize: Int, forward: Boolean)(implicit context: C): Option[Feed[E]]

    Retrieves a feed page

    Retrieves a feed page

    startSequenceNr

    start feed from entry with this sequence number

    pageSize

    number of entries to return in feed page

    context

    to retrieve the feed page

    returns

    a feed page or None if the startSequenceNr and pageSize are incorrect, for example when these are arbitrarily chosen by atom client, because this defeats the caching heuristics. atom clients should navigate using the links in the atom feed

  11. def getHeadOfFeed()(implicit context: C): Option[Feed[E]]

    Retrieves the head of the feed

    Retrieves the head of the feed

    context

    the context, which is required for feed stores

    returns

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

  12. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  17. def push(uuid: String, element: E)(implicit context: C): Unit

    Adds an element to the feed with a given uuid.

    Adds an element to the feed with a given uuid.

    uuid

    the uuid to use as the feed entry id to which the element is added

    element

    the element to add

    context

    the context, which is required for feed stores

  18. def push(element: E)(implicit context: C): Unit

    Adds an element to the feed.

    Adds an element to the feed.

    element

    the element to add

    context

    the context, which is required for feed stores

  19. def push(elements: Iterable[E])(implicit context: C): Unit

    Adds elements to the feed.

    Adds elements to the feed.

    elements

    the elements to add

    context

    the context, which is required for feed stores

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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped