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 givenRuntime
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(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 givenRuntime
instance. UseGarbageCollectionTask()
instead.- Parameters:
runtime
- aRuntime
instance
-
-
Method Detail
-
execute
public void execute(Map<String,List<String>> parameters, PrintWriter output)
Description copied from class:Task
Executes the task.- Specified by:
execute
in classTask
- Parameters:
parameters
- the query string parametersoutput
- aPrintWriter
wrapping the output stream of the task
-
-