Class Scatter<H,​P extends ResourcePath<K>,​K>


  • public class Scatter<H,​P extends ResourcePath<K>,​K>
    extends java.lang.Object
    Collection of ScatterGatherRequests for a request to the router. An incoming request is broken up into one or more ScatterGatherRequest, each of which represents a request which will be sent to a single storage node. This class holds all of the ScatterGatherRequests for a single incoming request.
    • Constructor Detail

      • Scatter

        public Scatter​(@Nonnull
                       P path,
                       @Nonnull
                       ResourcePathParser<P,​K> pathParser,
                       @Nonnull
                       java.lang.Object role)
    • Method Detail

      • getOnlineRequestCount

        public int getOnlineRequestCount()
      • getOfflineRequests

        @Nonnull
        public java.util.Collection<ScatterGatherRequest<H,​K>> getOfflineRequests()
      • getOfflineRequestCount

        public int getOfflineRequestCount()
      • getPath

        @Nonnull
        public P getPath()
      • getRole

        @Nonnull
        public <R> R getRole()