Class BucketFactory

    • Method Detail

      • createNewBuckets

        @NotNull
        public @NotNull List<WorkBucketType> createNewBuckets​(@NotNull
                                                              @NotNull List<WorkBucketType> currentBuckets,
                                                              int bucketsNeeded)
                                                       throws SchemaException
        Creates new buckets.
        Parameters:
        currentBuckets - Current list of buckets. This is used to determine where to start creating new buckets (sequential numbers, boundaries).
        bucketsNeeded - How many buckets does the client need? We can create more, if we want to. But not less; unless there is no more buckets available.
        Returns:
        Buckets created. We don't care about the state and worker reference.
        Throws:
        SchemaException
      • estimateNumberOfBuckets

        public Integer estimateNumberOfBuckets()