Search in sources :

Example 1 with StartLongPollCommand

use of com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand in project dolphin-platform by canoo.

the class TestDolphinContext method handle.

@Override
public List<Command> handle(final List<Command> commands) {
    final List<Command> commandsWithFackedLongPool = new ArrayList<>(commands);
    commandsWithFackedLongPool.add(new StartLongPollCommand());
    return super.handle(commandsWithFackedLongPool);
}
Also used : StartLongPollCommand(com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand) Command(com.canoo.dp.impl.remoting.legacy.communication.Command) ArrayList(java.util.ArrayList) StartLongPollCommand(com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand)

Example 2 with StartLongPollCommand

use of com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand in project dolphin-platform by canoo.

the class DolphinTestClientConnector method transmit.

@Override
protected List<Command> transmit(List<Command> commands) {
    ArrayList<Command> realCommands = new ArrayList<>(commands);
    realCommands.add(new StartLongPollCommand());
    return communicationFunction.apply(commands);
}
Also used : StartLongPollCommand(com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand) Command(com.canoo.dp.impl.remoting.legacy.communication.Command) ArrayList(java.util.ArrayList) StartLongPollCommand(com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand)

Aggregations

StartLongPollCommand (com.canoo.dp.impl.remoting.legacy.commands.StartLongPollCommand)2 Command (com.canoo.dp.impl.remoting.legacy.communication.Command)2 ArrayList (java.util.ArrayList)2