Package io.dropwizard.servlets.tasks
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 Summary
Constructors Constructor Description GarbageCollectionTask()Creates a new GarbageCollectionTask.GarbageCollectionTask(Runtime runtime)Creates a new GarbageCollectionTask with the givenRuntimeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Map<String,List<String>> parameters, PrintWriter output)Executes the task.-
Methods inherited from class io.dropwizard.servlets.tasks.Task
getName, getResponseContentType
-
-
-
-
Constructor Detail
-
GarbageCollectionTask
public GarbageCollectionTask()
Creates a new GarbageCollectionTask.
-
GarbageCollectionTask
public GarbageCollectionTask(Runtime runtime)
Creates a new GarbageCollectionTask with the givenRuntimeinstance. UseGarbageCollectionTask()instead.- Parameters:
runtime- aRuntimeinstance
-
-
Method Detail
-
execute
public void execute(Map<String,List<String>> parameters, PrintWriter output)
Description copied from class:TaskExecutes the task.- Specified by:
executein classTask- Parameters:
parameters- the query string parametersoutput- aPrintWriterwrapping the output stream of the task
-
-