public class MethodReplyMessageImpl extends ReplyDescriptorImpl implements MethodReplyMessage, Serializable
SessionIdAccessor.SessionIdMutator, SessionIdAccessor.SessionIdProperty
org.refcodes.exception.ExceptionAccessor.ExceptionMutator<E>, org.refcodes.exception.ExceptionAccessor.ExceptionProperty<E extends Throwable>
InstanceIdAccessor.InstanceIdMutator, InstanceIdAccessor.InstanceIdProperty
Constructor and Description |
---|
MethodReplyMessageImpl()
Creates a new
MethodReplyMessage instance. |
MethodReplyMessageImpl(Object aReturnValue,
Throwable aException,
MethodRequest aMethodRequestDescriptor) |
MethodReplyMessageImpl(Object returnValue,
Throwable throwable,
String instanceId,
String sessionId) |
MethodReplyMessageImpl(Reply aReplyDescriptor)
Creates a new
MethodReplyMessage instance. |
MethodReplyMessageImpl(String instanceId,
String sessionId) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
void |
setException(Throwable throwable) |
void |
setInstanceId(String instanceId) |
void |
setMethodReplyDescriptor(Reply methodReplyDescriptor) |
void |
setReply(Reply methodReply)
Sets a reply.
|
void |
setReturnValue(Object returnValue) |
void |
setSessionId(String sessionId) |
clear, getException, getInstanceId, getReturnValue, getSessionId, hasReply, isException, isReturnValue, setHasReply
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getReturnValue, hasReply, isException, isReturnValue
getSessionId
getInstanceId
public MethodReplyMessageImpl()
MethodReplyMessage
instance.public MethodReplyMessageImpl(Reply aReplyDescriptor)
MethodReplyMessage
instance.aReplyDescriptor
- The Reply
for the method reply
in question.public MethodReplyMessageImpl(Object aReturnValue, Throwable aException, MethodRequest aMethodRequestDescriptor)
public MethodReplyMessageImpl(Object returnValue, Throwable throwable, String instanceId, String sessionId)
public void reset()
reset
in interface org.refcodes.component.Resetable
public void setReply(Reply methodReply)
Reply
setReply
in interface Reply
setReply
in class ReplyDescriptorImpl
methodReply
- An object of type BlueprintMethodReply from which the
replied values (throwable or return value) will be taken.public void setReturnValue(Object returnValue)
setReturnValue
in interface Reply
setReturnValue
in class ReplyDescriptorImpl
returnValue
- Description is currently not available!public void setException(Throwable throwable)
setException
in interface org.refcodes.exception.ExceptionAccessor.ExceptionMutator<Throwable>
setException
in interface Reply
setException
in class ReplyDescriptorImpl
public void setInstanceId(String instanceId)
setInstanceId
in class ReplyDescriptorImpl
instanceId
- Description is currently not available!public void setSessionId(String sessionId)
setSessionId
in class ReplyDescriptorImpl
sessionId
- Description is currently not available!public void setMethodReplyDescriptor(Reply methodReplyDescriptor)
setMethodReplyDescriptor
in class ReplyDescriptorImpl
methodReplyDescriptor
- Description is currently not available!Copyright © 2016. All rights reserved.