Joram 5.2.5

org.objectweb.joram.mom.notifications
Class SubscribeRequest

java.lang.Object
  extended by fr.dyade.aaa.agent.Notification
      extended by org.objectweb.joram.mom.notifications.AbstractNotification
          extended by org.objectweb.joram.mom.notifications.AbstractRequest
              extended by org.objectweb.joram.mom.notifications.SubscribeRequest
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SubscribeRequest
extends AbstractRequest

A SubscribeRequest instance is used by a client agent for subscribing to a topic.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class fr.dyade.aaa.agent.Notification
detachable, detached, persistent
 
Constructor Summary
SubscribeRequest(int clientContext, int requestId, java.lang.String selector, boolean asyncSub)
          Constructs a SubscribeRequest instance.
 
Method Summary
 java.lang.String getSelector()
          Returns the selector.
 boolean isAsyncSub()
           
 
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractRequest
getRequestId, toString
 
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractNotification
getClientContext, getPersistent, setPersistent
 
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, getContext, getDeadNotificationAgentId, getExpiration, getMessageId, getPriority, isPersistent, setContext, setDeadNotificationAgentId, setExpiration, setPriority, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscribeRequest

public SubscribeRequest(int clientContext,
                        int requestId,
                        java.lang.String selector,
                        boolean asyncSub)
Constructs a SubscribeRequest instance.

Parameters:
clientContext - Identifies a client context.
requestId - Request identifier.
selector - Selector expression for filtering messages, null or empty string for no selection.
asyncSub - true if asynchronous subscription.
Method Detail

isAsyncSub

public boolean isAsyncSub()
Returns:
true for asynchronous subscription request.

getSelector

public java.lang.String getSelector()
Returns the selector.


Joram 5.2.5

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved