public interface ThreadEnforcer
| Modifier and Type | Field and Description |
|---|---|
static ThreadEnforcer |
ANY
A
ThreadEnforcer that does no verification. |
static ThreadEnforcer |
MAIN
A
ThreadEnforcer that confines Bus methods to the main thread. |
| Modifier and Type | Method and Description |
|---|---|
void |
enforce(Bus bus)
Enforce a valid thread for the given
bus. |
static final ThreadEnforcer ANY
ThreadEnforcer that does no verification.static final ThreadEnforcer MAIN
ThreadEnforcer that confines Bus methods to the main thread.void enforce(Bus bus)
bus. Implementations may throw any runtime exception.bus - Event bus instance on which an action is being performed.Copyright © 2015 Square, Inc.. All Rights Reserved.