本文整理了Java中com.google.common.eventbus.Subscribe
类的一些代码示例,展示了Subscribe
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Subscribe
类的具体详情如下:
包路径:com.google.common.eventbus.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);
}
内容来源于网络,如有侵权,请联系作者删除!