![JAR search and dependency download from the Maven repository](/logo.png)
javadoc.com.google.common.eventbus.Subscribe.html Maven / Gradle / Ivy
The newest version!
Subscribe (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: REQUIRED | OPTIONAL
DETAIL: ELEMENT
com.google.common.eventbus
Annotation Type Subscribe
Marks a method as an event handler, as used by
AnnotatedHandlerFinder
and EventBus
.
The type of event will be indicated by the method's first (and only)
parameter. If this annotation is applied to methods with zero parameters,
or more than one parameter, the object containing the method will not be able
to register for event delivery from the EventBus
.
Unless also annotated with @AllowConcurrentEvents
, event handler
methods will be invoked serially by each event bus that they are registered
with.
- Since:
- 10.0
- Author:
- Cliff Biffle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy