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
- Alphabetic
- By Inheritance
- FeedService
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getFeedPage(startSequenceNr: Long, pageSize: Int, forward: Boolean)(implicit context: C): Option[FeedPage[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
-
def
getHeadOfFeed()(implicit context: C): FeedPage[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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )