Package protocols.apps.canvas.messages
Class CanvasSyncMessage
java.lang.Object
pt.unl.fct.di.novasys.babel.generic.ProtoMessage
protocols.apps.canvas.messages.CanvasSyncMessage
public class CanvasSyncMessage
extends pt.unl.fct.di.novasys.babel.generic.ProtoMessage
A point-to-point canvas snapshot exchange, sent directly to one peer
(not broadcast) over HyParView's shared channel via
sendMessage. Two
kinds:
CanvasSyncMessage.Kind.REQUEST— "send me your current canvas", sent by a node once it has joined the overlay so a late joiner sees existing art immediately instead of waiting for new gossip;CanvasSyncMessage.Kind.REPLY— the responding peer's full set of winningPaintOps, which the requester merges under last-writer-wins.
This rides HyParView's channel specifically (not eager-push's): the peers
a NeighborUp reports are HyParView active-view members, reachable
on that channel without any port translation — so the Host from the
notification is exactly the sendMessage destination.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final pt.unl.fct.di.novasys.network.ISerializer<CanvasSyncMessage> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class pt.unl.fct.di.novasys.babel.generic.ProtoMessage
getId
-
Field Details
-
MSG_ID
public static final short MSG_ID- See Also:
-
serializer
-
-
Constructor Details
-
CanvasSyncMessage
-
-
Method Details
-
getKind
-
getOps
-