public class MuxRequestCorrelator extends RequestCorrelator
RequestCorrelator.Header, RequestCorrelator.MultiDestinationHeader, RequestCorrelator.MyProbeHandler, RequestCorrelator.ResponseImpl
Modifier and Type | Field and Description |
---|---|
protected static short |
MUX_ID |
async_dispatching, corr_id, local_addr, log, marshaller, probe_handler, request_handler, REQUEST_ID, requests, rpc_stats, started, transport, view, wrap_exceptions
Constructor and Description |
---|
MuxRequestCorrelator(short id,
Protocol transport,
RequestHandler handler,
Address localAddr) |
Modifier and Type | Method and Description |
---|---|
protected void |
prepareResponse(Message rsp) |
void |
sendRequest(java.util.Collection<Address> dest_mbrs,
Message msg,
Request req,
RequestOptions options)
Sends a request to a group.
|
void |
sendUnicastRequest(Address target,
Message msg,
Request req)
Sends a request to a single destination
|
asyncDispatching, asyncDispatching, dispatch, done, getLocalAddress, getMarshaller, handleRequest, receive, receiveMessage, receiveMessageBatch, receiveSuspect, receiveView, registerProbeHandler, removeEntry, sendReply, sendRequest, sendResponse, setLocalAddress, setMarshaller, setRequestHandler, setSiteUnreachable, start, stop, unregisterProbeHandler, wrapExceptions, wrapExceptions
public MuxRequestCorrelator(short id, Protocol transport, RequestHandler handler, Address localAddr)
public void sendRequest(java.util.Collection<Address> dest_mbrs, Message msg, Request req, RequestOptions options) throws java.lang.Exception
RequestCorrelator
sendRequest
in class RequestCorrelator
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 datareq
- A request (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.java.lang.Exception
public void sendUnicastRequest(Address target, Message msg, Request req) throws java.lang.Exception
RequestCorrelator
sendUnicastRequest
in class RequestCorrelator
java.lang.Exception
protected void prepareResponse(Message rsp)
prepareResponse
in class RequestCorrelator
Copyright © 1998-2020 Red Hat. All Rights Reserved.