public interface BroadcastService
| Modifier and Type | Method and Description |
|---|---|
<T> java.util.concurrent.Future<java.util.Map<java.lang.String,TaskResult<T>>> |
executeOnOthers(java.util.concurrent.Callable<T> callable)
Broadcast the execution of a callable on other nodes and returns immediately
a future holding the execution result on each node (once available).
|
<T> java.util.concurrent.Future<java.util.Map<java.lang.String,TaskResult<T>>> |
executeOnOthers(java.util.concurrent.Callable<T> callable,
java.lang.Long tenantId)
Broadcast the execution of a callable on other nodes and returns immediately
a future holding the execution result on each node (once available).
|
<T> java.util.Map<java.lang.String,TaskResult<T>> |
executeOnOthersAndWait(java.util.concurrent.Callable<T> callable,
java.lang.Long tenantId) |
<T> java.util.concurrent.Future<java.util.Map<java.lang.String,TaskResult<T>>> executeOnOthers(java.util.concurrent.Callable<T> callable)
T - type of the returned valuecallable - callable that will be executed on all nodes except the current one<T> java.util.concurrent.Future<java.util.Map<java.lang.String,TaskResult<T>>> executeOnOthers(java.util.concurrent.Callable<T> callable, java.lang.Long tenantId)
T - type of the returned valuecallable - callable that will be executed on all nodes except the current onetenantId - the if of the tenant<T> java.util.Map<java.lang.String,TaskResult<T>> executeOnOthersAndWait(java.util.concurrent.Callable<T> callable, java.lang.Long tenantId) throws java.util.concurrent.TimeoutException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionException