Class GarbageCollectionTask

java.lang.Object
io.dropwizard.servlets.tasks.Task
io.dropwizard.servlets.tasks.GarbageCollectionTask

public class GarbageCollectionTask extends Task
Performs a full JVM garbage collection (probably).
  • Constructor Details

    • GarbageCollectionTask

      public GarbageCollectionTask()
      Creates a new GarbageCollectionTask.
    • GarbageCollectionTask

      public GarbageCollectionTask(Runtime runtime)
      Creates a new GarbageCollectionTask with the given Runtime instance.

      Use GarbageCollectionTask() instead.

      Parameters:
      runtime - a Runtime instance
  • Method Details

    • execute

      public void execute(Map<String,List<String>> parameters, PrintWriter output)
      Description copied from class: Task
      Executes the task.
      Specified by:
      execute in class Task
      Parameters:
      parameters - the query string parameters
      output - a PrintWriter wrapping the output stream of the task