use of org.openkilda.floodlight.command.Command in project open-kilda by telstra.
the class RecordHandler method dispatch.
private boolean dispatch(CommandContext commandContext, CommandMessage message) {
CommandData payload = message.getData();
for (CommandDispatcher<?> entry : dispatchers) {
Optional<Command> command = entry.dispatch(commandContext, payload);
if (!command.isPresent()) {
continue;
}
commandProcessor.process(command.get());
return true;
}
return false;
}
Aggregations