Also fix message counters in PacketProcessing.
Change-Id: I7a270efa50a88dc430691002031d4079e3e369bf
Signed-off-by: Robert Varga <rovarga@cisco.com>
import org.slf4j.Logger;
public abstract class CommonService {
+ protected static final RpcResult<Void> SUCCESSFUL_RPCRESULT = RpcResultBuilder.<Void>success().build();
private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(CommonService.class);
private static final long WAIT_TIME = 2000;
private static final BigInteger PRIMARY_CONNECTION = BigInteger.ZERO;
RequestContextUtil.closeRequstContext(requestContext);
getMessageSpy().spyMessage(FlowModInput.class, MessageSpy.STATISTIC_GROUP.TO_SWITCH_SUBMIT_SUCCESS);
- settableFuture.set(RpcResultBuilder.<Void>success().build());
+ settableFuture.set(SUCCESSFUL_RPCRESULT);
}
@Override