Package org.teamapps.server
Class CommandDispatcherImpl
- java.lang.Object
-
- org.teamapps.server.CommandDispatcherImpl
-
- All Implemented Interfaces:
CommandDispatcher
public class CommandDispatcherImpl extends java.lang.Object implements CommandDispatcher
-
-
Constructor Summary
Constructors Constructor Description CommandDispatcherImpl(UiCommandExecutor commandExecutor, QualifiedUiSessionId qualifiedUiSessionId, SessionRecorder sessionRecorder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflushCommands()<RESULT> voidqueueCommand(org.teamapps.dto.UiCommand<RESULT> command, java.util.function.Consumer<RESULT> resultCallback)
-
-
-
Constructor Detail
-
CommandDispatcherImpl
public CommandDispatcherImpl(UiCommandExecutor commandExecutor, QualifiedUiSessionId qualifiedUiSessionId, SessionRecorder sessionRecorder)
-
-
Method Detail
-
queueCommand
public <RESULT> void queueCommand(org.teamapps.dto.UiCommand<RESULT> command, java.util.function.Consumer<RESULT> resultCallback)- Specified by:
queueCommandin interfaceCommandDispatcher
-
flushCommands
public void flushCommands()
- Specified by:
flushCommandsin interfaceCommandDispatcher
-
close
public void close()
- Specified by:
closein interfaceCommandDispatcher
-
-