sealed trait Event extends Immutable
Basic trait to define all processable events in ScalaNeko. There are two basic kinds of events:
- Events that are internal to a given process and used as notifications across protocol layers are called "signals". Such events must inherit from the class Signal, and are always local to the process on which they were created.
- Events that eventually transit through a network are called "messages". Such events must inherit from one of the subclasses of Message, namely:
- UnicastMessage are for messages with a single destination process, that are generated by a protocol.
- MulticastMessage are for messages with multiple destinations, that are generated by a protocol.
- Wrapper are for wrapping existing messages with added information (e.g., a sequence number), as is typically done for payload messages. Even without adding new information, a typical use case is to ensure that the message will first be processed by the same protocol (at the destination process) before its content is delivered to the higher layer.
Note that all events must be immutable. It is an error to create mutable messages and, even though this is not necessarily detected by the compiler, mutable messages will almost surely lead to faulty behavior that is difficult to reproduce and thus will be extremely difficult to detect.
- Alphabetic
- By Inheritance
- Event
- Immutable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Event, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (Event) ⇒ Boolean, msg: ⇒ Any): Event
- def ensuring(cond: (Event) ⇒ Boolean): Event
- def ensuring(cond: Boolean, msg: ⇒ Any): Event
- def ensuring(cond: Boolean): Event
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Event, B)