public enum ThreadMode extends java.lang.Enum<ThreadMode>
EventBus.register(Object)
Enum Constant and Description |
---|
ASYNC
Event handler methods are called in a separate thread.
|
BACKGROUND
Subscriber will be called in a background thread.
|
MAIN
Subscriber will be called in Android's main thread (sometimes referred to as UI thread).
|
POSTING
Subscriber will be called in the same thread, which is posting the event.
|
Modifier and Type | Method and Description |
---|---|
static ThreadMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadMode POSTING
public static final ThreadMode MAIN
public static final ThreadMode BACKGROUND
public static final ThreadMode ASYNC
public static ThreadMode[] values()
for (ThreadMode c : ThreadMode.values()) System.out.println(c);
public static ThreadMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullAvailable under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.