Class SpaceTaskDispatcher


  • public final class SpaceTaskDispatcher
    extends Object
    Author:
    Elias Lindholm (elilin)
    • Constructor Detail

      • SpaceTaskDispatcher

        public SpaceTaskDispatcher​(org.openspaces.core.GigaSpace gigaSpace,
                                   com.avanza.astrix.config.DynamicConfig config,
                                   com.avanza.astrix.beans.async.ContextPropagation contextPropagation)
    • Method Detail

      • getSpace

        public com.j_spaces.core.IJSpace getSpace()
      • partitionCount

        public int partitionCount()
      • observe

        public <T extends Serializable> rx.Observable<T> observe​(org.openspaces.core.executor.Task<T> task,
                                                                 Object routingKey)
        Creates a lazy Observable that will execute a given Task asynchronously once subscribed to.
        Parameters:
        task -
        routingKey -
        Returns:
      • observe

        public <T extends Serializable,​R> rx.Observable<R> observe​(org.openspaces.core.executor.DistributedTask<T,​R> distributedTask)
        Creates a lazy Observable that will execute a given DistributedTask asynchronously once subscribed to.
        Parameters:
        distributedTask -
        Returns:
      • getSpaceName

        public String getSpaceName()