ePOST API

rice.p2p.commonapi
Interface Message

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractSubscribeMessage, AggregationMessage, AggregationTimeoutMessage, AnycastMessage, BackupMessage, CacheMessage, ContinuationMessage, DropMessage, FetchHandleMessage, FetchMessage, GCCollectMessage, GCInsertMessage, GCLookupHandlesMessage, GCRefreshMessage, GlacierDataMessage, GlacierFetchMessage, GlacierMessage, GlacierNeighborRequestMessage, GlacierNeighborResponseMessage, GlacierQueryMessage, GlacierRangeForwardMessage, GlacierRangeQueryMessage, GlacierRangeResponseMessage, GlacierRefreshCompleteMessage, GlacierRefreshPatchMessage, GlacierRefreshProbeMessage, GlacierRefreshResponseMessage, GlacierResponseMessage, GlacierSyncMessage, GlacierTimeoutMessage, InsertMessage, LookupHandlesMessage, LookupMessage, MaintenanceMessage, MessageLostMessage, MultiringRegrTest.MultiringTestMessage, MyMsg, MyMsg, PastMessage, PostPastryMessage, PublishMessage, PublishRequestMessage, RefreshMessage, ReminderMessage, ReminderMessage, ReplicationMessage, RequestMessage, ResponseMessage, RingMessage, ScribeMessage, SubscribeAckMessage, SubscribeFailedMessage, SubscribeLostMessage, SubscribeMessage, SynchronizeMessage, TimeoutMessage, UnsubscribeMessage

public interface Message
extends java.io.Serializable

Version:
$Id: Message.java 2302 2005-03-11 00:58:26Z jeffh $
Author:
Alan Mislove, Peter Druschel

Field Summary
static int HIGH_PRIORITY
           
static int LOW_PRIORITY
           
static int MEDIUM_HIGH_PRIORITY
           
static int MEDIUM_LOW_PRIORITY
           
static int MEDIUM_PRIORITY
           
 
Method Summary
 int getPriority()
          Method which should return the priority level of this message.
 

Field Detail

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
Method Detail

getPriority

int getPriority()
Method which should return the priority level of this message. The messages can range in priority from 0 (highest priority) to Integer.MAX_VALUE (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

ePOST API

Copyright © 2001-2005 - Rice Pastry.