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 givenRuntimeinstance. -
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 givenRuntimeinstance. UseGarbageCollectionTask()instead.- Parameters:
runtime- aRuntimeinstance
-
-
Method Details
-
execute
Description copied from class:TaskExecutes the task.- Specified by:
executein classTask- Parameters:
parameters- the query string parametersoutput- aPrintWriterwrapping the output stream of the task
-