Skip navigation links
B C E G I L M N P R S T U V 

B

build() - Method in class com.alexvasilkov.events.Event.Builder
 
build() - Method in class com.alexvasilkov.events.EventResult.Builder
 

C

CacheProvider - Interface in com.alexvasilkov.events.cache
 
com.alexvasilkov.events - package com.alexvasilkov.events
 
com.alexvasilkov.events.cache - package com.alexvasilkov.events.cache
 
create(Throwable) - Static method in class com.alexvasilkov.events.EventFailure
 
create() - Static method in class com.alexvasilkov.events.EventResult
 
create(String) - Static method in class com.alexvasilkov.events.Events
 

E

EMPTY - Static variable in class com.alexvasilkov.events.EventResult
 
Event - Class in com.alexvasilkov.events
 
Event.Builder - Class in com.alexvasilkov.events
 
EventFailure - Class in com.alexvasilkov.events
 
EventResult - Class in com.alexvasilkov.events
 
EventResult.Builder - Class in com.alexvasilkov.events
 
Events - Class in com.alexvasilkov.events
TODO: documentation
Events() - Constructor for class com.alexvasilkov.events.Events
 
Events.Background - Annotation Type in com.alexvasilkov.events
Method marked with this annotation will receive events on background thread.
Events.Cache - Annotation Type in com.alexvasilkov.events
Method marked with this annotation will use new instance of given CacheProvider class to handle results caching.
Events.Failure - Annotation Type in com.alexvasilkov.events
Method marked with this annotation will receive failure callbacks for events with specified key on main thread.
Events.Result - Annotation Type in com.alexvasilkov.events
Method marked with this annotation will receive results for events with specified key on main thread.
Result can be accessed either directly as method's parameter or through EventResult object.
Events.Status - Annotation Type in com.alexvasilkov.events
Method marked with this annotation will receive status updates for events with specified key on main thread.
STARTED status will be sent before any subscribed method is executed (right after event is posted to the bus) and for all newly registered events receivers if execution of all subscribed methods is no yet finished. FINISHED status will be sent after all subscribed methods (including background) are executed.
Events.Subscribe - Annotation Type in com.alexvasilkov.events
Method marked with this annotation will receive events with specified key on main thread.
EventsException - Exception in com.alexvasilkov.events
 
EventsException(String) - Constructor for exception com.alexvasilkov.events.EventsException
 
EventsException(String, Throwable) - Constructor for exception com.alexvasilkov.events.EventsException
 
EventStatus - Enum in com.alexvasilkov.events
 

G

getError() - Method in class com.alexvasilkov.events.EventFailure
 
getKey() - Method in class com.alexvasilkov.events.Event
 
getParam(int) - Method in class com.alexvasilkov.events.Event
Returns value at index position and implicitly casts it to T.
getParamsCount() - Method in class com.alexvasilkov.events.Event
 
getResult(int) - Method in class com.alexvasilkov.events.EventResult
Returns value at index position and implicitly casts it to T.
getResultsCount() - Method in class com.alexvasilkov.events.EventResult
 
getTag(int) - Method in class com.alexvasilkov.events.Event
Returns value at index position and implicitly casts it to T.
getTag(int) - Method in class com.alexvasilkov.events.EventResult
Returns value at index position and implicitly casts it to T.
getTagsCount() - Method in class com.alexvasilkov.events.Event
 
getTagsCount() - Method in class com.alexvasilkov.events.EventResult
 
getUniqueId() - Method in class com.alexvasilkov.events.Event
 

I

init(Context) - Static method in class com.alexvasilkov.events.Events
Initializes event bus
isDeeplyEqual(Event, Event) - Static method in class com.alexvasilkov.events.Event
Two events are considered deeply equal if they have same key and exactly same parameters lists.
isHandled() - Method in class com.alexvasilkov.events.EventFailure
 

L

loadFromCache(Event) - Method in interface com.alexvasilkov.events.cache.CacheProvider
 
loadFromCache(Event) - Method in class com.alexvasilkov.events.cache.MemoryCache
 

M

markAsHandled() - Method in class com.alexvasilkov.events.EventFailure
 
MemoryCache - Class in com.alexvasilkov.events.cache
 
MemoryCache() - Constructor for class com.alexvasilkov.events.cache.MemoryCache
 
MemoryCache(long, boolean) - Constructor for class com.alexvasilkov.events.cache.MemoryCache
 

N

NO_TIME_LIMIT - Static variable in class com.alexvasilkov.events.cache.MemoryCache
 

P

param(Object...) - Method in class com.alexvasilkov.events.Event.Builder
Appends event's parameters.
post() - Method in class com.alexvasilkov.events.Event.Builder
 
post() - Method in class com.alexvasilkov.events.Event
Schedules event to be passed to all available subscribers.
post(String) - Static method in class com.alexvasilkov.events.Events
 
postResult(EventResult) - Method in class com.alexvasilkov.events.Event
Schedules event's result to be passed to all available subscribers.
This method should only be called inside of method marked with Events.Subscribe See Events.Result.
postResult(Object...) - Method in class com.alexvasilkov.events.Event
Wraps given params as EventResult and passes them to Event.postResult(EventResult).

R

register(Object) - Static method in class com.alexvasilkov.events.Events
 
result(Object...) - Method in class com.alexvasilkov.events.EventResult.Builder
 

S

saveToCache(Event, EventResult) - Method in interface com.alexvasilkov.events.cache.CacheProvider
 
saveToCache(Event, EventResult) - Method in class com.alexvasilkov.events.cache.MemoryCache
 
setDebug(boolean) - Static method in class com.alexvasilkov.events.Events
 

T

tag(Object...) - Method in class com.alexvasilkov.events.Event.Builder
Appends additional (dynamic) event's parameters.
tag(Object...) - Method in class com.alexvasilkov.events.EventResult.Builder
 
toCacheKey(Event) - Method in class com.alexvasilkov.events.cache.MemoryCache
 

U

unregister(Object) - Static method in class com.alexvasilkov.events.Events
 

V

valueOf(String) - Static method in enum com.alexvasilkov.events.EventStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.alexvasilkov.events.EventStatus
Returns an array containing the constants of this enum type, in the order they are declared.
B C E G I L M N P R S T U V 
Skip navigation links