be.wegenenverkeer.atomium.server

AsyncFeedService

class AsyncFeedService[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. AsyncFeedService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncFeedService(entriesPerPage: Int, feedStore: AsyncFeedStore[E, C])

    entriesPerPage

    the number of entries per page

    feedStore

    a feed store

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  12. def getFeedPage(startSequenceNr: Long, pageSize: Int, forward: Boolean)(implicit executionContext: ExecutionContext, context: C): Future[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

  13. def getHeadOfFeed()(implicit executionContext: ExecutionContext, context: C): Future[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

  14. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  19. def push(uuid: String, element: E)(implicit context: C): Future[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

  20. def push(element: E)(implicit context: C): Future[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

  21. def push(elements: Iterable[E])(implicit context: C): Future[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

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped