Enum Class AgentBuilder.RedefinitionStrategy.Listener.NoOp

java.lang.Object
java.lang.Enum<AgentBuilder.RedefinitionStrategy.Listener.NoOp>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener.NoOp
All Implemented Interfaces:
Serializable, Comparable<AgentBuilder.RedefinitionStrategy.Listener.NoOp>, Constable, AgentBuilder.RedefinitionStrategy.Listener
Enclosing interface:
AgentBuilder.RedefinitionStrategy.Listener

public static enum AgentBuilder.RedefinitionStrategy.Listener.NoOp extends Enum<AgentBuilder.RedefinitionStrategy.Listener.NoOp> implements AgentBuilder.RedefinitionStrategy.Listener
A non-operational listener.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • onBatch

      public void onBatch(int index, List<Class<?>> batch, List<Class<?>> types)
      Invoked before applying a batch.
      Specified by:
      onBatch in interface AgentBuilder.RedefinitionStrategy.Listener
      Parameters:
      index - A running index of the batch starting at 0.
      batch - The types included in this batch.
      types - All types included in the redefinition.
    • onError

      public Iterable<? extends List<Class<?>>> onError(int index, List<Class<?>> batch, Throwable throwable, List<Class<?>> types)
      Invoked upon an error during a batch. This method is not invoked if the failure handler handled this error.
      Specified by:
      onError in interface AgentBuilder.RedefinitionStrategy.Listener
      Parameters:
      index - A running index of the batch starting at 0.
      batch - The types included in this batch.
      throwable - The throwable that caused this invocation.
      types - All types included in the redefinition.
      Returns:
      A set of classes which should be attempted to be redefined. Typically, this should be a subset of the classes contained in batch but not all classes.
    • onComplete

      public void onComplete(int amount, List<Class<?>> types, Map<List<Class<?>>,Throwable> failures)
      Invoked upon completion of all batches.
      Specified by:
      onComplete in interface AgentBuilder.RedefinitionStrategy.Listener
      Parameters:
      amount - The total amount of batches that were executed.
      types - All types included in the redefinition.
      failures - A mapping of batch types to their unhandled failures.