public class MuxRpcDispatcher extends RpcDispatcher
Channel c = new JChannel(...);
c.setUpHandler(new MuxUpHandler());
RpcDispatcher d1 = new MuxRpcDispatcher((short) 1, c, ...);
RpcDispatcher d2 = new MuxRpcDispatcher((short) 2, c, ...);
c.connect(...);
RpcDispatcher.Marshallermethod_lookup, req_marshaller, rsp_marshaller, server_objasync_anycasts, async_dispatching, async_multicasts, async_unicasts, channel, channel_listeners, corr, hardware_multicast_supported, local_addr, log, members, membership_listener, msg_listener, probe_handler, prot_adapter, req_handler, sync_anycasts, sync_multicasts, sync_unicasts| Constructor and Description |
|---|
MuxRpcDispatcher(short scopeId) |
MuxRpcDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
Object serverObject) |
MuxRpcDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
Object serverObject,
MethodLookup method_lookup) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> GroupRequest<T> |
cast(Collection<Address> dests,
Message msg,
RequestOptions options,
boolean blockForResults,
FutureListener<T> listener) |
protected RequestCorrelator |
createRequestCorrelator(Protocol transport,
RequestHandler handler,
Address localAddr) |
void |
start() |
void |
stop() |
callRemoteMethod, callRemoteMethod, callRemoteMethods, callRemoteMethods, callRemoteMethodsWithFuture, callRemoteMethodsWithFuture, callRemoteMethodWithFuture, callRemoteMethodWithFuture, correlatorStarted, getMarshaller, getMethodLookup, getName, getRequestMarshaller, getResponseMarshaller, getServerObject, handle, setMarshaller, setMethodLookup, setRequestMarshaller, setResponseMarshaller, setServerObjectaddChannelListener, asyncDispatching, asyncDispatching, cast, castMessage, castMessageWithFuture, castMessageWithFuture, channelClosed, channelConnected, channelDisconnected, done, getChannel, getMessageListener, getProtocolAdapter, handle, handleUpEvent, installUpHandler, removeChannelListener, sendMessage, sendMessageWithFuture, sendMessageWithFuture, setChannel, setMembers, setMembershipListener, setMessageListener, setRequestHandlerpublic MuxRpcDispatcher(short scopeId)
public MuxRpcDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
Object serverObject)
public MuxRpcDispatcher(short scopeId,
Channel channel,
MessageListener messageListener,
MembershipListener membershipListener,
Object serverObject,
MethodLookup method_lookup)
protected RequestCorrelator createRequestCorrelator(Protocol transport, RequestHandler handler, Address localAddr)
createRequestCorrelator in class MessageDispatcherpublic void start()
start in class MessageDispatcherpublic void stop()
stop in class MessageDispatcherprotected <T> GroupRequest<T> cast(Collection<Address> dests, Message msg, RequestOptions options, boolean blockForResults, FutureListener<T> listener) throws Exception
cast in class MessageDispatcherExceptionCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.