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.
|
BackgroundThread
Subscriber will be called in a background thread.
|
MainThread
Subscriber will be called in Android's main thread (sometimes referred to as UI thread).
|
PostThread
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 PostThread
public static final ThreadMode MainThread
public static final ThreadMode BackgroundThread
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-2014 greenrobot.de. All Rights Reserved.