Note that you can force RxJava to not use Unsafe API by setting any value to System Property
rx.unsafe-disable.
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| public static final Unsafe |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | |
| public static boolean | |
| public static int | |
| public static int | |
| public static int | |
| public static boolean |
| DISABLED_BY_USER | back to summary |
|---|---|
| private static final boolean DISABLED_BY_USER | |
| UNSAFE | back to summary |
|---|---|
| public static final Unsafe UNSAFE | |
| UnsafeAccess | back to summary |
|---|---|
| private UnsafeAccess() | |
| addressOf | back to summary |
|---|---|
| public static long addressOf(Class<?> clazz, String fieldName) Returns the address of the specific field on the class and wraps a NoSuchFieldException into an internal error. One can avoid using static initializers this way and just assign the address directly to the target static field. | |
| compareAndSwapInt | back to summary |
|---|---|
| public static boolean compareAndSwapInt(Object obj, long offset, int expected, int newValue) | |
| getAndAddInt | back to summary |
|---|---|
| public static int getAndAddInt(Object obj, long offset, int n) | |
| getAndIncrementInt | back to summary |
|---|---|
| public static int getAndIncrementInt(Object obj, long offset) | |
| getAndSetInt | back to summary |
|---|---|
| public static int getAndSetInt(Object obj, long offset, int newValue) | |
| isUnsafeAvailable | back to summary |
|---|---|
| public static boolean isUnsafeAvailable() | |