ostore.tapestry.api
Class TapestryPublishMsg
java.lang.Object
|
+--ostore.tapestry.api.TapestryPublishMsg
- All Implemented Interfaces:
- QueueElementIF
- public class TapestryPublishMsg
- extends Object
- implements QueueElementIF
Event that causes Tapestry to publish a backpointer to the given GUID
with the given tag.
- See Also:
TapestryLocateMsg
guid
public SecureHash guid
- The GUID.
tag
public TapestryTag tag
- The tag.
qos
public int qos
- The delivery qos of this msg, added by Ling Huang
local_opts
public int local_opts
- A bitmask indicating which local optimizations to use.
Bits indicate the following optimizations, from least significant bit
to most significant bit:
Bit 1) Publish along secondary links, for a few hops
Bit 2) Publish along all links at the current level, for a few hops
Bit 3) Before leaving a LAN, misroute and publish.
Note: "a few hops" is defined by Router.LOCAL_OPT_HOPS
TapestryPublishMsg
public TapestryPublishMsg(SecureHash guid,
TapestryTag tag)
- Construct according to the given fields.
TapestryPublishMsg
public TapestryPublishMsg()
setLocalOptPublishBackup
public void setLocalOptPublishBackup()
setLocalOptPublishAllLinks
public void setLocalOptPublishAllLinks()
setLocalOptPublishLocalMisroute
public void setLocalOptPublishLocalMisroute()
toString
public String toString()
- Returns a human-readable representation of this
TapestryPublishMsg
.
- Overrides:
toString
in class Object