Package org.jgroups.blocks
Class RequestCorrelator.ResponseImpl
java.lang.Object
org.jgroups.blocks.RequestCorrelator.ResponseImpl
- All Implemented Interfaces:
Response
- Enclosing class:
RequestCorrelator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSends a response, usually called from a thread spawned byRequestHandler.handle(Message,Response)voidSimilar toResponse.send(Object,boolean), but passes a message instead of an object.
-
Field Details
-
req
-
req_id
protected final long req_id
-
-
Constructor Details
-
ResponseImpl
-
-
Method Details
-
send
Description copied from interface:ResponseSends a response, usually called from a thread spawned byRequestHandler.handle(Message,Response)- Specified by:
sendin interfaceResponse- Parameters:
reply- The reply to be sent back, ie. as result to a synchronous RPC. Can be null, e.g. when the method has a void return type.is_exception- IfRequestHandler.handle(Message,Response)threw an exception, it must be caught, returned as the reply and is_exception must be true. If reply is a regular object, is_exception is false
-
send
Description copied from interface:ResponseSimilar toResponse.send(Object,boolean), but passes a message instead of an object. The message needs to contain the marshalled response, so message creation, setting of flags and marshalling is the responsibility of the caller.The reason for this additional method is to give the caller more control over the response message.
This method may be removed, should we find that it's not really needed
-