public class BroadcastServiceLocal extends java.lang.Object implements BroadcastService
| Constructor and Description |
|---|
BroadcastServiceLocal() |
| 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) |
public <T> java.util.concurrent.Future<java.util.Map<java.lang.String,TaskResult<T>>> executeOnOthers(java.util.concurrent.Callable<T> callable)
BroadcastServiceexecuteOnOthers in interface BroadcastServiceT - type of the returned valuecallable - callable that will be executed on all nodes except the current onepublic <T> java.util.concurrent.Future<java.util.Map<java.lang.String,TaskResult<T>>> executeOnOthers(java.util.concurrent.Callable<T> callable, java.lang.Long tenantId)
BroadcastServiceexecuteOnOthers in interface BroadcastServiceT - type of the returned valuecallable - callable that will be executed on all nodes except the current onetenantId - the if of the tenantpublic <T> java.util.Map<java.lang.String,TaskResult<T>> executeOnOthersAndWait(java.util.concurrent.Callable<T> callable, java.lang.Long tenantId)
executeOnOthersAndWait in interface BroadcastService