|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.Notification
org.objectweb.joram.mom.notifications.AbstractNotification
org.objectweb.joram.mom.notifications.AbstractRequest
org.objectweb.joram.mom.notifications.ReceiveRequest
A ReceiveRequest
instance is used by a client agent for
requesting a message on a queue.
Field Summary | |
AgentId |
requester
Identifier of the client requesting a message, set by the queue if storing the request. |
Fields inherited from class fr.dyade.aaa.agent.Notification |
persistent |
Constructor Summary | |
ReceiveRequest(int clientContext,
int requestId,
java.lang.String selector,
long timeOut,
boolean autoAck)
Constructs a ReceiveRequest instance. |
Method Summary | |
boolean |
getAutoAck()
Checks the autoAck mode of this request. |
java.lang.String |
getSelector()
Returns the selector of the request. |
long |
getTimeOut()
Returns the time-to-live parameter of this request, in milliseconds (0 for immediate delivery, negative for infinite validity). |
boolean |
isValid()
Returns false if the request expired. |
void |
setExpiration(long currentTime)
Updates the expiration time field, if needed. |
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractRequest |
getRequestId, toString |
Methods inherited from class org.objectweb.joram.mom.notifications.AbstractNotification |
getClientContext |
Methods inherited from class fr.dyade.aaa.agent.Notification |
clone, getContext, setContext |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public AgentId requester
Constructor Detail |
public ReceiveRequest(int clientContext, int requestId, java.lang.String selector, long timeOut, boolean autoAck)
ReceiveRequest
instance.
clientContext
- Identifies a client context.requestId
- Request identifier.selector
- Selector expression for filtering messages, null or empty
for no selection.timeOut
- Time-to-live value. For immediate delivery, should be set
to 0. For infinite time-to-live, should be negative.autoAck
- true
for immediately acknowledging the
delivered message on the queue, false
otherwise.Method Detail |
public java.lang.String getSelector()
public long getTimeOut()
public boolean getAutoAck()
public void setExpiration(long currentTime)
public boolean isValid()
false
if the request expired.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |