Class ValueResponseMessage<V>
- java.lang.Object
-
- co.paralleluniverse.actors.behaviors.ActorMessage
-
- co.paralleluniverse.actors.behaviors.ResponseMessage
-
- co.paralleluniverse.actors.behaviors.ValueResponseMessage<V>
-
- All Implemented Interfaces:
IdMessage,java.io.Serializable
public class ValueResponseMessage<V> extends ResponseMessage implements IdMessage
A simple subclass ofResponseMessagethat encapsulates a single response value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValueResponseMessage(java.lang.Object id, V value)Constructs aValueResponseMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcontentString()VgetValue()The response value, i.e.-
Methods inherited from class co.paralleluniverse.actors.behaviors.ResponseMessage
getId
-
Methods inherited from class co.paralleluniverse.actors.behaviors.ActorMessage
toString
-
-
-
-
Constructor Detail
-
ValueResponseMessage
@ConstructorParameters({"id","value"}) public ValueResponseMessage(java.lang.Object id, V value)Constructs aValueResponseMessage.- Parameters:
id- theidof theRequestMessagethis is a response to.value- the response value, i.e. the result of the request
-
-
Method Detail
-
getValue
public V getValue()
The response value, i.e. the result of the request.
-
contentString
protected java.lang.String contentString()
- Overrides:
contentStringin classResponseMessage
-
-