public class MuxMessageDispatcher extends MessageDispatcher
Channel c = new JChannel(...);
c.setUpHandler(new MuxUpHandler());
MessageDispatcher d1 = new MuxMessageDispatcher((short) 1, c, ...);
MessageDispatcher d2 = new MuxMessageDispatcher((short) 2, c, ...);
c.connect(...);
async_dispatching, channel, channel_listeners, corr, hardware_multicast_supported, local_addr, log, members, membership_listener, msg_listener, prot_adapter, req_handler, rpc_stats, wrap_exceptions
Constructor and Description |
---|
MuxMessageDispatcher(short scopeId) |
MuxMessageDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
RequestHandler handler) |
Modifier and Type | Method and Description |
---|---|
protected <T> GroupRequest<T> |
cast(java.util.Collection<Address> dests,
Message msg,
RequestOptions options,
boolean blockForResults,
FutureListener<RspList<T>> listener) |
protected RequestCorrelator |
createRequestCorrelator(Protocol transport,
RequestHandler handler,
Address localAddr) |
void |
start() |
void |
stop() |
addChannelListener, asyncDispatching, asyncDispatching, cast, castMessage, castMessageWithFuture, castMessageWithFuture, channelClosed, channelConnected, channelDisconnected, close, correlator, correlator, correlatorStarted, done, extendedStats, extendedStats, getChannel, getMessageListener, getProtocolAdapter, handle, handle, handleUpEvent, installUpHandler, removeChannelListener, rpcStats, sendMessage, sendMessageWithFuture, sendMessageWithFuture, setChannel, setMembers, setMembershipListener, setMessageListener, setRequestHandler, wrapExceptions, wrapExceptions
public MuxMessageDispatcher(short scopeId)
public MuxMessageDispatcher(short scopeId, Channel channel, MessageListener messageListener, MembershipListener membershipListener, RequestHandler handler)
protected RequestCorrelator createRequestCorrelator(Protocol transport, RequestHandler handler, Address localAddr)
createRequestCorrelator
in class MessageDispatcher
public void start()
start
in class MessageDispatcher
public void stop()
stop
in class MessageDispatcher
protected <T> GroupRequest<T> cast(java.util.Collection<Address> dests, Message msg, RequestOptions options, boolean blockForResults, FutureListener<RspList<T>> listener) throws java.lang.Exception
cast
in class MessageDispatcher
java.lang.Exception
Copyright © 1998-2020 Red Hat. All Rights Reserved.