@AcStatusSubscriber(Status.DEACTIVE) public void onDeactive() { AcDispatchRegistry registry = serviceConfig.getDispatchRegistry(); for (String name : registry.getNames()) { unregisterDownstream(name); } }
@AcStatusSubscriber(Status.ACTIVE) public void onActive() { AcDispatchRegistry registry = serviceConfig.getDispatchRegistry(); for (String name : registry.getNames()) { AcDataListener<AcCommonDataWithPayLoad> downstream = registry.getDataListener(name); AcDispatchInfo info = registry.getDispatchInfo(name); registerDownstream(name, downstream, info); } }