コード例 #1
0
 @AcStatusSubscriber(Status.DEACTIVE)
 public void onDeactive() {
   AcDispatchRegistry registry = serviceConfig.getDispatchRegistry();
   for (String name : registry.getNames()) {
     unregisterDownstream(name);
   }
 }
コード例 #2
0
 @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);
   }
 }