trait AsyncFeedStore[E, C <: Context] extends AnyRef
A feed store is responsible for the persistence of feeds.
- E
type of the elements in the feed
- Alphabetic
- By Inheritance
- AsyncFeedStore
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
getFeed(startSequenceNr: Long, count: Int, forward: Boolean)(implicit executionContext: ExecutionContext, context: C): Future[Option[FeedPage[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
Noneif the page is not found
-
abstract
def
getHeadOfFeed(pageSize: Int)(implicit executionContext: ExecutionContext, context: C): Future[FeedPage[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
- abstract def push(uuid: String, entry: E)(implicit context: C): Future[Unit]
-
abstract
def
push(entries: Iterable[E])(implicit context: C): Future[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
-
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( ... )
-
def
close(): Unit
This method is called when the be.wegenenverkeer.atomium.server.FeedService is stopped.
-
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
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
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)
-
def
push(entry: E)(implicit context: C): Future[Unit]
push a single entry to the feed
push a single entry to the feed
- entry
the entry to push to the feed
-
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( ... )