rice.p2p.commonapi
Interface Message
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- RawMessage
- All Known Implementing Classes:
- AbstractSubscribeMessage, AggregationMessage, AggregationTimeoutMessage, AnycastMessage, BroadcastLeafSet, BroadcastRouteRow, CacheMessage, ConsistentJoinMsg, ContinuationMessage, DatagramMessage, DropMessage, FetchHandleMessage, FetchMessage, GCCollectMessage, GCInsertMessage, GCLookupHandlesMessage, GCRefreshMessage, GlacierDataMessage, GlacierFetchMessage, GlacierMessage, GlacierNeighborRequestMessage, GlacierNeighborResponseMessage, GlacierQueryMessage, GlacierRangeForwardMessage, GlacierRangeQueryMessage, GlacierRangeResponseMessage, GlacierRefreshCompleteMessage, GlacierRefreshPatchMessage, GlacierRefreshProbeMessage, GlacierRefreshResponseMessage, GlacierResponseMessage, GlacierSyncMessage, GlacierTimeoutMessage, HelloMsg, InitiateJoin, InitiateLeafSetMaintenance, InitiatePingNeighbor, InitiateRouteSetMaintenance, InsertMessage, IPAddressRequestMessage, IPAddressResponseMessage, JavaSerializedMessage, JoinRequest, LeafSetRequestMessage, LeafSetResponseMessage, LookupHandlesMessage, LookupMessage, MaintenanceMessage, Message, MessageLostMessage, MultiringRegrTest.MultiringTestMessage, MyMsg, MyMsg, MyMsg, MyMsg, MyMsg, MyMsg, MyMsg, NodeIdRequestMessage, NodeIdResponseMessage, PastMessage, PastryEndpointMessage, PingMessage, PingMessageNew, PingResponseMessage, PJavaSerializedMessage, PRawMessage, PublishMessage, PublishRequestMessage, ReminderMessage, ReminderMessage, ReplicationMessage, RequestLeafSet, RequestMessage, RequestRouteRow, ResponseMessage, RouteMessage, RouteRowRequestMessage, RouteRowResponseMessage, RoutesRequestMessage, RoutesResponseMessage, ScribeMessage, SocketMessage, SourceRoute, SubscribeAckMessage, SubscribeFailedMessage, SubscribeLostMessage, SubscribeMessage, TimeoutMessage, UnsubscribeMessage, WrongEpochMessage
public interface Message
- extends java.io.Serializable
- Version:
- $Id: Message.java 3568 2007-01-25 17:20:07Z jeffh $
- Author:
- Alan Mislove, Peter Druschel
Method Summary |
int |
getPriority()
Method which should return the priority level of this message. |
MAX_PRIORITY
static final int MAX_PRIORITY
- See Also:
- Constant Field Values
HIGH_PRIORITY
static final int HIGH_PRIORITY
- See Also:
- Constant Field Values
MEDIUM_HIGH_PRIORITY
static final int MEDIUM_HIGH_PRIORITY
- See Also:
- Constant Field Values
MEDIUM_PRIORITY
static final int MEDIUM_PRIORITY
- See Also:
- Constant Field Values
MEDIUM_LOW_PRIORITY
static final int MEDIUM_LOW_PRIORITY
- See Also:
- Constant Field Values
LOW_PRIORITY
static final int LOW_PRIORITY
- See Also:
- Constant Field Values
LOWEST_PRIORITY
static final int LOWEST_PRIORITY
- See Also:
- Constant Field Values
getPriority
int getPriority()
- Method which should return the priority level of this message. The messages
can range in priority from -15 (highest priority) to 15 (lowest) -
when sending messages across the wire, the queue is sorted by message priority.
If the queue reaches its limit, the lowest priority messages are discarded. Thus,
applications which are very verbose should have LOW_PRIORITY or lower, and
applications which are somewhat quiet are allowed to have MEDIUM_PRIORITY or
possibly even HIGH_PRIORITY.
- Returns:
- This message's priority
Copyright © 2001-2005 - Rice Pastry.