ca.mcgill.cs.postina.scribe
Class SubscribeRequest

java.lang.Object
  extended by ca.mcgill.cs.postina.scribe.ScribeRequestMessage
      extended by ca.mcgill.cs.postina.scribe.SubscribeRequest
All Implemented Interfaces:
java.io.Serializable, rice.p2p.commonapi.Message, rice.p2p.scribe.ScribeContent

public class SubscribeRequest
extends ScribeRequestMessage

A SubscribeRequest is a ScribeRequestMessage that tells the client to which the SubscribeRequest is sent how (that is to which topics and with which message) to issue the requested subscription.

Version:
Oct 23, 2007
Author:
Dominik Zindel
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from interface rice.p2p.commonapi.Message
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
 
Constructor Summary
protected SubscribeRequest(java.util.Collection<rice.p2p.scribe.Topic> topics, PostinaScribeTransportMessage content)
          The constructor for a SubcribeRequest takes the collection of the topics to which the client should subscribe and a message that is sent together with the subscription.
 
Method Summary
 
Methods inherited from class ca.mcgill.cs.postina.scribe.ScribeRequestMessage
getContent, getPriority, getTopics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SubscribeRequest

protected SubscribeRequest(java.util.Collection<rice.p2p.scribe.Topic> topics,
                           PostinaScribeTransportMessage content)
The constructor for a SubcribeRequest takes the collection of the topics to which the client should subscribe and a message that is sent together with the subscription.

Parameters:
topics - The collection of Topics to which the client has to subscribe.
content - The PostinaScribeTransportMessage that has to be sent together with the subscription.