GroupMessageStorage

io.github.positionpal.message.GroupMessageStorage
case class GroupMessageStorage(system: ActorSystem[_]) extends MessageStorage[Future]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MessageStorage[Future]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type ErrorDescription = (String, Error | Throwable)

Retrieve the last n messages that where persisted inside a Group

Retrieve the last n messages that where persisted inside a Group

Value parameters

groupID

identifier of the group

n

number of messages that should be retrieved

Attributes

Returns

a F with a Seq of the last n messages of the group

Inherited from:
MessageStorage
type MessageList = Seq[Message[ClientID, String]]

Attributes

Inherited from:
MessageStorage

Value members

Concrete methods

override def getLastMessages(groupID: String)(n: Int): Future[Either[ErrorDescription, MessageList]]

Attributes

Definition Classes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Givens

Givens

given given_ActorSystem_: ActorSystem[_]
given given_ExecutionContext: ExecutionContext