| Package | Description |
|---|---|
| org.nustaq.kontraktor | |
| org.nustaq.kontraktor.impl | |
| org.nustaq.kontraktor.monitoring | |
| org.nustaq.kontraktor.remoting.tcp | |
| org.nustaq.kontraktor.util |
| Modifier and Type | Class and Description |
|---|---|
class |
Promise<T>
Created by ruedi on 20.05.14.
|
| Modifier and Type | Method and Description |
|---|---|
Future |
Actor.$getReport() |
Future<Monitorable[]> |
Actor.$getSubMonitorables() |
Future |
Actor.$sync()
can be used to wait for all messages having been processed
|
static Future<Future[]> |
Actors.async(Callable<Future>... toexec)
mimics scala's async macro. callables are executed in order. if a callable returns a promise,
execution of the next callable is deferred until the promise is fulfilled.
|
protected <T> Future<T> |
Actor.exec(Callable<T> callable)
execute a callable asynchronously (in a different thread) and return a future
of the result (delivered in caller thread)
WARNING: do not access local actor state (instance fields) from within the callable (=hidden parallelism).
|
<OUT> Future<OUT> |
Promise.map(Filter<T,OUT> filter) |
<OUT> Future<OUT> |
Future.map(Filter<T,OUT> filter) |
Future<OUT> |
Filter.map(IN result,
Object error) |
Future<T> |
Promise.onError(java.util.function.Consumer errorHandler) |
Future<T> |
Future.onError(java.util.function.Consumer errorHandler)
called when an error is set as the result
|
Future<T> |
Promise.onResult(java.util.function.Consumer<T> resultHandler) |
Future<T> |
Future.onResult(java.util.function.Consumer<T> resultHandler)
called when a valid result of a future becomes available
|
Future<T> |
Promise.onTimeout(java.util.function.Consumer timeoutHandler) |
Future<T> |
Future.onTimeout(java.util.function.Consumer timeoutHandler)
called when the async call times out. see 'timeOutIn'
|
protected Future<Future[]> |
Actor.ordered(Callable<Future>... callables)
execute given callables asynchronously, but one after another async but chained.
|
Future |
Promise.then(Callback resultCB) |
Future<T> |
Future.then(Callback<T> result)
called when any result of a future becomes available
|
Future<T> |
Promise.then(Runnable result) |
Future<T> |
Future.then(Runnable result)
called when any result of a future becomes available
|
Future |
Promise.timeoutIn(long millis) |
Future |
Future.timeoutIn(long millis) |
Future<Future[]> |
Scheduler.yield(Future... futures)
wait for all futures to complete and return an array of fulfilled futures
e.g. yield( f1, f2 ).then( (f,e) -> System.out.println( f[0].getResult() + f[1].getResult() ) );
|
static Future<Future[]> |
Actors.yield(Future... futures) |
protected Future<Future[]> |
Actor.yield(Future... futures) |
Future<List<Future>> |
Scheduler.yield(List<Future> futures) |
static Future<List<Future>> |
Actors.yield(List<Future> futures) |
protected <T> Future<T[]> |
Actor.yield2Result(Future<T>... futures)
same as yield, but converts the resulting Future[] to an Object[] or T[]
|
protected Future<List<Future>> |
Actor.yieldList(List<Future> futures) |
| Modifier and Type | Method and Description |
|---|---|
Future<List<Future>> |
Scheduler.yield(List<Future> futures) |
static Future<List<Future>> |
Actors.yield(List<Future> futures) |
protected Future<List<Future>> |
Actor.yieldList(List<Future> futures) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
Actors.sync(Future<T> fut)
block until future returns.
|
static Object[] |
Actors.toResults(Future[] futs) |
Future<Future[]> |
Scheduler.yield(Future... futures)
wait for all futures to complete and return an array of fulfilled futures
e.g. yield( f1, f2 ).then( (f,e) -> System.out.println( f[0].getResult() + f[1].getResult() ) );
|
static Future<Future[]> |
Actors.yield(Future... futures) |
protected Future<Future[]> |
Actor.yield(Future... futures) |
protected <T> Future<T[]> |
Actor.yield2Result(Future<T>... futures)
same as yield, but converts the resulting Future[] to an Object[] or T[]
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Actor.serialOn(Object transactionKey,
java.util.function.Consumer<Future> toRun)
enforce serial execution of asynchronous tasks.
|
Future<List<Future>> |
Scheduler.yield(List<Future> futures) |
static Future<List<Future>> |
Actors.yield(List<Future> futures) |
protected Future<List<Future>> |
Actor.yieldList(List<Future> futures) |
| Modifier and Type | Class and Description |
|---|---|
class |
CallbackWrapper<T>
..
|
| Modifier and Type | Method and Description |
|---|---|
Future |
ElasticScheduler.$getReport() |
Future |
DispatcherThread.$getReport() |
Future<Monitorable[]> |
ElasticScheduler.$getSubMonitorables() |
Future<Monitorable[]> |
DispatcherThread.$getSubMonitorables() |
Future |
CallEntry.getFutureCB() |
<OUT> Future<OUT> |
CallbackWrapper.map(Filter<T,OUT> filter) |
Future<T> |
CallbackWrapper.onError(java.util.function.Consumer errorHandler) |
Future<T> |
CallbackWrapper.onResult(java.util.function.Consumer<T> resultHandler) |
Future<T> |
CallbackWrapper.onTimeout(java.util.function.Consumer timeoutHandler) |
Future |
ElasticScheduler.put2QueuePolling(CallEntry e) |
Future |
CallbackWrapper.then(Callback<T> result) |
Future<T> |
CallbackWrapper.then(Runnable result) |
Future |
CallbackWrapper.timeoutIn(long millis) |
Future<Future[]> |
ElasticScheduler.yield(Future... futures)
wait for all futures to complete and return an array of fulfilled futures
e.g. yield( f1, f2 ).then( (f,e) -> System.out.println( f[0].getResult() + f[1].getResult() ) );
|
Future<List<Future>> |
ElasticScheduler.yield(List<Future> futures) |
| Modifier and Type | Method and Description |
|---|---|
Future<List<Future>> |
ElasticScheduler.yield(List<Future> futures) |
| Modifier and Type | Method and Description |
|---|---|
void |
CallEntry.setFutureCB(Future futureCB) |
Future<Future[]> |
ElasticScheduler.yield(Future... futures)
wait for all futures to complete and return an array of fulfilled futures
e.g. yield( f1, f2 ).then( (f,e) -> System.out.println( f[0].getResult() + f[1].getResult() ) );
|
| Modifier and Type | Method and Description |
|---|---|
Future<List<Future>> |
ElasticScheduler.yield(List<Future> futures) |
| Modifier and Type | Method and Description |
|---|---|
Future |
Monitorable.$getReport() |
Future<Monitorable[]> |
Monitorable.$getSubMonitorables() |
| Modifier and Type | Method and Description |
|---|---|
static <AC extends Actor> |
TCPActorClient.Connect(Class<AC> clz,
String host,
int port) |
static <AC extends Actor> |
TCPActorClient.Connect(Class<AC> clz,
String host,
int port,
java.util.function.Consumer<Actor> disconnectHandler) |
| Modifier and Type | Method and Description |
|---|---|
Future<String[]> |
HttpMonitor.getMonitorableKeys(String simpleClzName) |
protected Future<Object[]> |
HttpMonitor.getMonitorables(int depth,
Monitorable monitorable) |
Future<Future> |
TicketMachine.getTicket(Object channelKey) |
Future[] |
Hoarde.map(java.util.function.BiFunction<T,Integer,Future> init) |
Future |
Hoarde.ordered(java.util.function.Function<T,Future> toCall) |
| Modifier and Type | Method and Description |
|---|---|
Future<Future> |
TicketMachine.getTicket(Object channelKey) |
| Modifier and Type | Method and Description |
|---|---|
Future[] |
Hoarde.map(java.util.function.BiFunction<T,Integer,Future> init) |
Future |
Hoarde.ordered(java.util.function.Function<T,Future> toCall) |
| Constructor and Description |
|---|
FutureLatch(Future<T> wrapped) |
FutureLatch(Future<T> wrapped,
int counter) |
Copyright © 2015. All rights reserved.