public class CallMultiplexer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
futureMap
Map of futures of calls that are in progress.
|
Constructor and Description |
---|
CallMultiplexer()
Instantiates a call multiplexer.
|
Modifier and Type | Method and Description |
---|---|
IFuture |
doCall(IResultCommand call)
Calls the command.
|
IFuture |
doCall(java.lang.Object keyargs,
IResultCommand call)
Calls the command.
|
IFuture |
doCall(java.lang.Object keyargs,
IResultCommand call,
boolean commandaskey)
Calls the command.
|
protected java.util.Map futureMap
public CallMultiplexer()
public IFuture doCall(IResultCommand call)
call
- The command.public IFuture doCall(java.lang.Object keyargs, IResultCommand call)
keyargs
- Key argument to differentiate whether calls are similar in addition
to the command class, may be an array.call
- The command.public IFuture doCall(java.lang.Object keyargs, IResultCommand call, boolean commandaskey)
keyargs
- Key argument to differentiate whether calls are similar in addition
to the command class, may be an array.call
- The command.commandaskey
- Flag whether to consider the command class as part of the key
differentiating calls.