cc.otavia.core.message
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
A Call that expects a reply of type R. When an actor receives an Ask, it must eventually call stack.return(reply) to deliver a R back to the sender.
A Call that expects a reply of type R. When an actor receives an Ask, it must eventually call stack.return(reply) to deliver a R back to the sender.
The match type ReplyOf extracts R from an Ask at compile time, enabling type-safe request-response patterns without manual casting:
case class GetUser(id: Long) extends Ask[User]
// ReplyOf[GetUser] resolves to User at compile time
Type parameters
- R
-
the expected reply type
Attributes
- Supertypes
- Known subtypes
-
class AcceptedChannelclass Bindtrait Connectclass ConnectChannelclass HttpClientRequesttrait Command[R]class Authclass Delclass Getclass HGetAllclass HSetclass Infoclass Selectclass Setclass ExecuteCursor[R]trait PrepareQuery[T]trait SimpleQuery[T]class AuthenticationShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass TimerEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
A Message that triggers stack coroutine execution when received by an cc.otavia.core.actor.Actor.
A Message that triggers stack coroutine execution when received by an cc.otavia.core.actor.Actor.
On delivery, the runtime creates a cc.otavia.core.stack.Stack (AskStack, NoticeStack, or batch variant) and invokes the actor's corresponding resume method.
Attributes
- Supertypes
- Known subtypes
-
trait Ask[R]class AcceptedChannelclass Bindtrait Connectclass ConnectChannelclass HttpClientRequesttrait Command[R]class Authclass Delclass Getclass HGetAllclass HSetclass Infoclass Selectclass Setclass ExecuteCursor[R]trait PrepareQuery[T]trait SimpleQuery[T]class Authenticationtrait Noticeclass Argsclass ArrayNotice[T]class IntNoticeclass SeqNotice[T]class StringNoticeclass ProbeStarttrait LogMsgclass Debugclass Errorclass Fatalclass Infoclass Traceclass Warnclass CursorEndclass CursorRow[R]Show all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass TimerEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
-
EMPTY_EVENT.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Envelope.type
Event for cc.otavia.core.actor.Actor
Event for cc.otavia.core.actor.Actor
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ReactorEventclass AcceptedEventclass BindReplyclass ChannelCloseclass ConnectReplyclass DeregisterReplyclass DisconnectReplyobject EMPTY_EVENTclass OpenReplyclass ReadBufferclass ReadCompletedEventclass ReadEventclass RegisterReplyclass ShutdownReplyclass TimerEventclass AskTimeoutEventclass ChannelTimeoutEventclass ResourceTimeoutEventclass TimeoutEventShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ExceptionMessage.type
Some notices classes that may be used frequently
Some notices classes that may be used frequently
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Helper.type
The base type of all data exchanged between actors. Every value sent to or received from an actor must be a Message. The message hierarchy defines the communication patterns:
The base type of all data exchanged between actors. Every value sent to or received from an actor must be a Message. The message hierarchy defines the communication patterns:
Attributes
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
-
trait Calltrait Ask[R]class AcceptedChannelclass Bindtrait Connectclass ConnectChannelclass HttpClientRequesttrait Command[R]class Authclass Delclass Getclass HGetAllclass HSetclass Infoclass Selectclass Setclass ExecuteCursor[R]trait PrepareQuery[T]trait SimpleQuery[T]class Authenticationtrait Noticeclass Argsclass ArrayNotice[T]class IntNoticeclass SeqNotice[T]class StringNoticeclass ProbeStarttrait LogMsgclass Debugclass Errorclass Fatalclass Infoclass Traceclass Warnclass CursorEndclass CursorRow[R]trait Replyclass ChannelEstablishedclass ExceptionMessagetrait UnitReplytrait TimeoutReplyclass HttpClientResponseclass HttpResponse[C]class OKtrait CommandResponseclass BulkReplyclass OKclass Successclass Cursorclass ModifyRowstrait Rowclass RowSet[R]Show all
A Call that does not expect a reply. The sender has no way to know when (or whether) the notice was processed.
A Call that does not expect a reply. The sender has no way to know when (or whether) the notice was processed.
Example:
case class LogEntry(text: String) extends Notice
Attributes
- Supertypes
- Known subtypes
-
class Argstrait Connectclass ConnectChannelclass ArrayNotice[T]class IntNoticeclass SeqNotice[T]class StringNoticeclass ProbeStarttrait LogMsgclass Debugclass Errorclass Fatalclass Infoclass Traceclass Warnclass CursorEndclass CursorRow[R]class AuthenticationShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
channel event for cc.otavia.core.actor.ChannelsActor
channel event for cc.otavia.core.actor.ChannelsActor
Attributes
- Supertypes
- Known subtypes
-
class AcceptedEventclass BindReplyclass ChannelCloseclass ConnectReplyclass DeregisterReplyclass DisconnectReplyobject EMPTY_EVENTclass OpenReplyclass ReadBufferclass ReadCompletedEventclass ReadEventclass RegisterReplyclass ShutdownReplyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
The response to an Ask. Each Reply completes exactly one pending ask, waking the suspended cc.otavia.core.stack.Stack in the sending actor.
The response to an Ask. Each Reply completes exactly one pending ask, waking the suspended cc.otavia.core.stack.Stack in the sending actor.
Attributes
- Supertypes
- Known subtypes
-
class ChannelEstablishedclass ExceptionMessagetrait UnitReplytrait TimeoutReplyclass HttpClientResponseclass HttpResponse[C]class OKtrait CommandResponseclass BulkReplyclass OKclass Successclass Cursorclass ModifyRowstrait Rowclass RowSet[R]Show all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass TimerEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ReactorEventclass Eventclass Objecttrait Matchableclass AnyShow all
Timeout event
Timeout event
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass TimerEventclass Eventclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TimeoutReply.type
Attributes
- Supertypes
- Known subtypes