@Singleton public class FakeSync extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
FakeSync.UncheckedSemaphore |
Constructor | Description |
---|---|
FakeSync() |
Modifier and Type | Method | Description |
---|---|---|
int |
blockedFutureCount() |
|
void |
completeFutures() |
Complete all the blocked futures, even new ones created while executing this method
|
<T> BlockingDeque<T> |
deque(String name) |
|
<T> CompletableFuture<T> |
future(String name) |
|
<T> cloud.orbit.concurrent.Task<T> |
futureFrom(Supplier<cloud.orbit.concurrent.Task<T>> supplier) |
|
<T> cloud.orbit.concurrent.Task<T> |
get(Object key) |
Deprecated.
|
<T> CompletableFuture<T> |
getBlockedFuture() |
|
<T> CompletableFuture<T> |
getBlockedFuture(T value) |
Creates and an uncompleted future and adds it the the queue for later completion.
|
<T> cloud.orbit.concurrent.Task<T> |
getBlockedTask() |
|
<T> cloud.orbit.concurrent.Task<T> |
getBlockedTask(T value) |
|
void |
put(Object key,
Object value) |
Deprecated.
|
FakeSync.UncheckedSemaphore |
semaphore(String semaphoreName) |
|
<T> cloud.orbit.concurrent.Task<T> |
task(String name) |
public <T> cloud.orbit.concurrent.Task<T> futureFrom(Supplier<cloud.orbit.concurrent.Task<T>> supplier)
public <T> CompletableFuture<T> getBlockedFuture(T value)
public <T> CompletableFuture<T> getBlockedFuture()
public <T> cloud.orbit.concurrent.Task<T> getBlockedTask(T value)
public <T> cloud.orbit.concurrent.Task<T> getBlockedTask()
public void completeFutures()
public int blockedFutureCount()
@Deprecated public void put(Object key, Object value)
@Deprecated public <T> cloud.orbit.concurrent.Task<T> get(Object key)
public FakeSync.UncheckedSemaphore semaphore(String semaphoreName)
public <T> cloud.orbit.concurrent.Task<T> task(String name)
public <T> CompletableFuture<T> future(String name)
public <T> BlockingDeque<T> deque(String name)
Copyright © 2018 Electronic Arts Inc. All rights reserved.