|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.pushwithreturn.WaitingKey
public class WaitingKey
This class represents a waiting key. A waiting key stores data associated to a key: a message, a boolean indicating whether a returned message corresponding to the key has been received.
Constructor Summary | |
---|---|
WaitingKey()
|
Method Summary | |
---|---|
Key |
getKey()
Returns the key associated to this WaitingKey. |
Message |
getMessage()
Returns the message associated to this key. |
Reference<? extends Recyclable> |
getReference()
|
Message |
getReturnMessage()
Returns the return message. |
boolean |
getReturnMessageReceived()
Returns true if the return message has been received. |
void |
recycle()
|
void |
setKey(Key key)
Sets the key associated to this waiting key. |
void |
setMessage(Message message)
Sets the message associated to this key. |
void |
setReference(Reference<? extends Recyclable> recyclableReference)
|
void |
setReturnMessage(Message returnMessage)
Sets the return message. |
void |
setReturnMessageReceived(boolean returnMessageReceived)
Sets the returnMessageReceived boolean to the specifed value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WaitingKey()
Method Detail |
---|
public Message getReturnMessage()
public void setReturnMessage(Message returnMessage)
returnMessage
- the return message to set.public void setReturnMessageReceived(boolean returnMessageReceived)
returnMessageReceived
- the value to set.public boolean getReturnMessageReceived()
true
if the return message has been received.
true
if the return message has been received.public void setMessage(Message message)
message
- the message to be set.public Message getMessage()
public void setKey(Key key)
key
- the key to be set.public Key getKey()
public void recycle()
recycle
in interface Recyclable
Recyclable.recycle()
public Reference<? extends Recyclable> getReference()
getReference
in interface Recyclable
Recyclable.getReference()
public void setReference(Reference<? extends Recyclable> recyclableReference)
setReference
in interface Recyclable
Recyclable.setReference(Reference)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |