public interface Scheduler extends Monitorable
| Modifier and Type | Method and Description |
|---|---|
DispatcherThread |
assignDispatcher(int minLoadPerc) |
void |
delayedCall(long millis,
Runnable toRun) |
Object |
enqueueCall(Actor sendingActor,
Actor receiver,
String methodName,
Object[] args,
boolean isCB) |
BackOffStrategy |
getBackoffStrategy() |
int |
getDefaultQSize() |
InvocationHandler |
getInvoker(Actor dispatcher,
Object toWrap) |
int |
getMaxThreads() |
<T> T |
inThread(Actor actor,
T callback)
Creates a wrapper on the given object enqueuing all calls to INTERFACE methods of the given object to the given actors's queue.
|
void |
put2QueuePolling(Queue q,
boolean isCBQ,
Object o,
Object sender) |
void |
rebalance(DispatcherThread dispatcherThread)
called from inside overloaded thread with load
all actors assigned to the calling thread therefore can be safely moved
|
<T> void |
runBlockingCall(Actor emitter,
Callable<T> toCall,
Callback<T> resultHandler) |
void |
runOutside(Actor actor,
Runnable toRun) |
void |
threadStopped(DispatcherThread th) |
void |
tryIsolate(DispatcherThread dp,
Actor actorRef) |
void |
tryStopThread(DispatcherThread dispatcherThread) |
Future<Future[]> |
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() ) );
|
void |
yield(int count) |
Future<List<Future>> |
yield(List<Future> futures) |
$getReport, $getSubMonitorablesint getMaxThreads()
int getDefaultQSize()
void yield(int count)
Object enqueueCall(Actor sendingActor, Actor receiver, String methodName, Object[] args, boolean isCB)
void threadStopped(DispatcherThread th)
InvocationHandler getInvoker(Actor dispatcher, Object toWrap)
<T> T inThread(Actor actor, T callback)
T - callback - void delayedCall(long millis,
Runnable toRun)
<T> void runBlockingCall(Actor emitter, Callable<T> toCall, Callback<T> resultHandler)
Future<Future[]> yield(Future... futures)
futures - DispatcherThread assignDispatcher(int minLoadPerc)
void rebalance(DispatcherThread dispatcherThread)
dispatcherThread - BackOffStrategy getBackoffStrategy()
void tryStopThread(DispatcherThread dispatcherThread)
void tryIsolate(DispatcherThread dp, Actor actorRef)
Copyright © 2015. All rights reserved.