Class AgentBuilder.RedefinitionStrategy.BatchAllocator.ForFixedSize

    • Field Detail

      • size

        private final int size
        The size of each chunk.
    • Constructor Detail

      • ForFixedSize

        protected ForFixedSize​(int size)
        Creates a new batch allocator that creates fixed-sized chunks.
        Parameters:
        size - The size of each chunk.
    • Method Detail

      • ofSize

        public static AgentBuilder.RedefinitionStrategy.BatchAllocator ofSize​(int size)
        Creates a new batch allocator that creates chunks of a fixed size.
        Parameters:
        size - The size of each chunk or 0 if the batch should be included in a single chunk.
        Returns:
        An appropriate batch allocator.
      • 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.