abstract class MulticastMessage extends Message
Base class to define a new message with multiple destination processes (multicast).
Each new message must be a subclass of UnicastMessage, of BroadcastMessage, or of MulticastMessage. For a protocols to add information to an existing message, it is necessary to define instead a wrapper message; i.e., a subclass of Wrapper.
Typical declarations of top-level messages:
case class Snapshot(from: PID, to: Set[PID]) extends MulticastMessage case class ViewChange(from: PID, to: Set[PID], viewNum: Long, epochNum: Long) extends MulticastMessage case class Heartbeat(from: PID, to: Set[PID], sentAt: Time, sn: Long) extends MulticastMessage
The fields to and from must be defined. Thus, to work properly, it is essential that new
messages are created with from and to arguments as above.
Instantiation of top-level messages:
import neko._ val m1 = Snapshot(me, neighbors) val m2 = ViewChange(me, ALL, myView, myEpoch) val m3 = Heartbeat(me, neighbors, now, seqnum)
Defining actual messages as a case class is a recommended practice and highly convenient since
it allows for pattern matching without requiring any additional work.
def onReceive = { case Snapshot(from,_) if from < me => // e.g., getting a snapshot from a process with lower id case ViewChange(_,_,view,epoch) if view > currentView => currentView = view // ... }
- Alphabetic
- By Inheritance
- MulticastMessage
- Message
- Event
- Immutable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-  new MulticastMessage()
Abstract Value Members
Concrete Value Members
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        !=(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        ##(): Int
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        +(other: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to any2stringadd[MulticastMessage] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ->[B](y: B): (MulticastMessage, B)
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to ArrowAssoc[MulticastMessage] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        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
      
      
        destinations: Set[PID]
      
      
      The set of destination processes (well, their ID anyways). The set of destination processes (well, their ID anyways). - returns
- the set of destination processes. 
 - Definition Classes
- MulticastMessage → Message
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (MulticastMessage) ⇒ Boolean, msg: ⇒ Any): MulticastMessage
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to Ensuring[MulticastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: (MulticastMessage) ⇒ Boolean): MulticastMessage
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to Ensuring[MulticastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: Boolean, msg: ⇒ Any): MulticastMessage
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to Ensuring[MulticastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        ensuring(cond: Boolean): MulticastMessage
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to Ensuring[MulticastMessage] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        eq(arg0: AnyRef): Boolean
      
      
      - Definition Classes
- AnyRef
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        equals(arg0: Any): Boolean
      
      
      - Definition Classes
- AnyRef → Any
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        formatted(fmtstr: String): String
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to StringFormat[MulticastMessage] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
 
- 
      
      
      
        
      
    
      
        final 
        def
      
      
        getClass(): Class[_]
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        def
      
      
        hashCode(): Int
      
      
      - Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
 
- 
      
      
      
        
      
    
      
        
        val
      
      
        id: MessageID
      
      
      The identifier of the message. The identifier of the message. - returns
- the identifier of the message 
 - Definition Classes
- MulticastMessage → Message → Event
 
- 
      
      
      
        
      
    
      
        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
 
-  lazy val toPrettyString: String
- 
      
      
      
        
      
    
      
        
        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): (MulticastMessage, B)
      
      
      - Implicit
- This member is added by an implicit conversion from MulticastMessage to ArrowAssoc[MulticastMessage] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc