Package io.dropwizard.servlets.tasks
Class GarbageCollectionTask
java.lang.Object
io.dropwizard.servlets.tasks.Task
io.dropwizard.servlets.tasks.GarbageCollectionTask
Performs a full JVM garbage collection (probably).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new GarbageCollectionTask.GarbageCollectionTask
(Runtime runtime) Creates a new GarbageCollectionTask with the givenRuntime
instance. -
Method Summary
Methods inherited from class io.dropwizard.servlets.tasks.Task
getName, getResponseContentType
-
Constructor Details
-
GarbageCollectionTask
public GarbageCollectionTask()Creates a new GarbageCollectionTask. -
GarbageCollectionTask
Creates a new GarbageCollectionTask with the givenRuntime
instance. UseGarbageCollectionTask()
instead.- Parameters:
runtime
- aRuntime
instance
-
-
Method Details
-
execute
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
-