Class AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning

    • Field Detail

      • parts

        private final int parts
        The amount of batches to generate.
    • Constructor Detail

      • Partitioning

        protected Partitioning​(int parts)
        Creates a new batch allocator that splits types for redefinition into a fixed amount of parts.
        Parameters:
        parts - The amount of parts to create.
    • Method Detail

      • of

        public static AgentBuilder.RedefinitionStrategy.BatchAllocator of​(int parts)
        Creates a part-splitting batch allocator.
        Parameters:
        parts - The amount of parts to create.
        Returns:
        A batch allocator that splits the redefined types into a fixed amount of batches.
      • batch

        public java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> batch​(java.util.List<java.lang.Class<?>> types)
        Splits a list of types to be retransformed into separate batches.
        Specified by:
        batch in interface AgentBuilder.RedefinitionStrategy.BatchAllocator
        Parameters:
        types - A list of types which should be retransformed.
        Returns:
        An iterable of retransformations within a batch.