com.google.common.eventbus.Subscribe类的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(126)

本文整理了Java中com.google.common.eventbus.Subscribe类的一些代码示例,展示了Subscribe类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Subscribe类的具体详情如下:
包路径:com.google.common.eventbus.Subscribe
类名称:Subscribe

Subscribe介绍

暂无

代码示例

代码示例来源:origin: Graylog2/graylog2-server

@Subscribe
@SuppressWarnings("unused")
public void handleIndexSetCreation(IndexSetCreatedEvent event) {
  scheduler.submit(engineUpdater);
}

代码示例来源:origin: elasticjob/elastic-job-lite

/**
 * 作业执行事件监听执行.
 *
 * @param jobExecutionEvent 作业执行事件
 */
@Subscribe
@AllowConcurrentEvents
void listen(JobExecutionEvent jobExecutionEvent);

代码示例来源:origin: elasticjob/elastic-job-lite

/**
   * 作业状态痕迹事件监听执行.
   *
   * @param jobStatusTraceEvent 作业状态痕迹事件
   */
  @Subscribe
  @AllowConcurrentEvents
  void listen(JobStatusTraceEvent jobStatusTraceEvent);
}

代码示例来源:origin: Graylog2/graylog2-server

@Subscribe
@SuppressWarnings("unused")
public void handleIndexSetDeletion(IndexSetDeletedEvent event) {
  scheduler.submit(engineUpdater);
}

代码示例来源:origin: google/guava

@Subscribe
@AllowConcurrentEvents
public void threadSafeMethod(Object arg) {}

代码示例来源:origin: google/guava

@Subscribe
 public void throwExceptionOn(String message) {
  throw exception;
 }
};

代码示例来源:origin: google/guava

@Override
@Subscribe
void declaredIn1AnnotatedIn2(Object o);

代码示例来源:origin: google/guava

@Subscribe
 public void handle(String s) {}
}

代码示例来源:origin: google/guava

@Override
@Subscribe
void annotatedIn1And2AndClass(Object o);

代码示例来源:origin: google/guava

@Subscribe
 public void handle(Integer i) {}
}

代码示例来源:origin: google/guava

@Subscribe
 public abstract void overriddenInSubclass(Object o);
}

代码示例来源:origin: google/guava

@Override
@Subscribe
void annotatedIn1And2(Object o);

代码示例来源:origin: google/guava

@Subscribe
 void annotatedIn2(Object o);
}

代码示例来源:origin: google/guava

@Subscribe
 public void handle(Object o) {}
}

代码示例来源:origin: google/guava

@Subscribe
void annotatedIn1And2(Object o);

代码示例来源:origin: google/guava

@Subscribe
void annotatedIn1And2AndClass(Object o);

代码示例来源:origin: google/guava

@Subscribe
public abstract void overriddenAndAnnotatedInSubclass(Object o);

代码示例来源:origin: google/guava

@Subscribe
void annotatedIn1(Object o);

代码示例来源:origin: google/guava

@Subscribe
 @Override
 public void differentlyOverriddenAnnotatedInSubclass(Object o) {
  differentlyOverriddenAnnotatedInSubclassGoodEvents.add(o);
 }
}

代码示例来源:origin: google/guava

@Subscribe
@Override
public void declaredIn2AnnotatedInClass(Object o) {
 declaredIn2AnnotatedInClassEvents.add(o);
}

相关文章

Subscribe类方法