Package net.bytebuddy.agent.builder
Interface AgentBuilder.RedefinitionStrategy.ResubmissionScheduler
- All Known Implementing Classes:
AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.AtFixedRate,AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.NoOp,AgentBuilder.RedefinitionStrategy.ResubmissionScheduler.WithFixedDelay
- Enclosing class:
AgentBuilder.RedefinitionStrategy
public static interface AgentBuilder.RedefinitionStrategy.ResubmissionScheduler
A resubmission scheduler is responsible for scheduling a job that is resubmitting unloaded types that failed during retransformation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA resubmission scheduler that schedules jobs at a fixed rate.static interfaceA cancelable allows to discontinue a resubmission job.static enumA resubmission scheduler that does not apply any scheduling.static classA resubmission scheduler that schedules jobs with a fixed delay. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAlive()Checks if this scheduler is currently available.Schedules a resubmission job for regular application.
-
Method Details
-
isAlive
boolean isAlive()Checks if this scheduler is currently available.- Returns:
trueif this scheduler is alive.
-
schedule
Schedules a resubmission job for regular application.- Parameters:
job- The job to schedule.- Returns:
- A cancelable that is canceled upon resetting the corresponding class file transformer.
-