Interface BroadcastService

All Known Implementing Classes:
BroadcastServiceLocal

public interface BroadcastService
Service allowing to broadcast a call made on services to the other nodes of a Cluster
Author:
Baptiste Mesta
  • Method Details

    • executeOnOthers

      <T> Future<Map<String,TaskResult<T>>> executeOnOthers(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).
      The callable will be executed using a platform level session on other nodes.
      Type Parameters:
      T - type of the returned value
      Parameters:
      callable - callable that will be executed on all nodes except the current one
      Returns:
      a future of a map containing the name of the node and the result of the callable
    • executeOnOthers

      <T> Future<Map<String,TaskResult<T>>> executeOnOthers(Callable<T> callable, 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).
      The callable will be executed using a tenant level session on other nodes.
      Type Parameters:
      T - type of the returned value
      Parameters:
      callable - callable that will be executed on all nodes except the current one
      tenantId - the if of the tenant
      Returns:
      a future of a map containing the name of the node and the result of the callable
    • executeOnOthersAndWait

      <T> Map<String,TaskResult<T>> executeOnOthersAndWait(Callable<T> callable, Long tenantId) throws TimeoutException, InterruptedException, ExecutionException
      Throws:
      TimeoutException
      InterruptedException
      ExecutionException