use of org.openkilda.messaging.info.reroute.RerouteResultInfoData in project open-kilda by telstra.
the class FlowRerouteHubBolt method sendRerouteResultStatus.
@Override
public void sendRerouteResultStatus(String flowId, RerouteError rerouteError, String correlationId) {
RerouteResultInfoData rerouteResult = RerouteResultInfoData.builder().flowId(flowId).success(rerouteError == null).rerouteError(rerouteError).build();
Message message = new InfoMessage(rerouteResult, System.currentTimeMillis(), correlationId);
emitWithContext(Stream.HUB_TO_REROUTE_RESPONSE_SENDER.name(), getCurrentTuple(), new Values(currentKey, message));
}
Aggregations