public class MuxRequestCorrelator extends RequestCorrelator
RequestCorrelator.Header, RequestCorrelator.MultiDestinationHeader, RequestCorrelator.ResponseImpl| 限定符和类型 | 字段和说明 |
|---|---|
protected static short |
MUX_ID |
async_dispatching, id, local_addr, log, marshaller, request_handler, requests, started, transport, view| 构造器和说明 |
|---|
MuxRequestCorrelator(short id,
Protocol transport,
RequestHandler handler,
Address localAddr) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
prepareResponse(Message rsp) |
void |
sendRequest(long requestId,
java.util.Collection<Address> dest_mbrs,
Message msg,
RspCollector coll,
RequestOptions options)
Sends a request to a group.
|
void |
sendUnicastRequest(long id,
Address target,
Message msg,
RspCollector coll)
Sends a request to a single destination
|
asyncDispatching, asyncDispatching, done, getLocalAddress, getMarshaller, handleRequest, receive, receiveMessage, receiveSuspect, receiveView, registerProbeHandler, sendReply, sendRequest, sendResponse, setLocalAddress, setMarshaller, setRequestHandler, setSiteUnreachable, start, stop, unregisterProbeHandlerpublic MuxRequestCorrelator(short id,
Protocol transport,
RequestHandler handler,
Address localAddr)
public void sendRequest(long requestId,
java.util.Collection<Address> dest_mbrs,
Message msg,
RspCollector coll,
RequestOptions options)
throws java.lang.Exception
RequestCorrelatorsendRequest 在类中 RequestCorrelatorrequestId - The request ID. Must be unique for this JVM (e.g. current time in millisecs)dest_mbrs - The list of members who should receive the call. Usually a group RPC
is sent via multicast, but a receiver drops the request if its own address
is not in this list. Will not be used if it is null.msg - The request to be sent. The body of the message carries
the request datacoll - A response collector (usually the object that invokes this method). Its methods
receiveResponse() and suspect() will be invoked when a message has been received
or a member is suspected, respectively.java.lang.Exceptionpublic void sendUnicastRequest(long id,
Address target,
Message msg,
RspCollector coll)
throws java.lang.Exception
RequestCorrelatorsendUnicastRequest 在类中 RequestCorrelatorjava.lang.Exceptionprotected void prepareResponse(Message rsp)
prepareResponse 在类中 RequestCorrelator