All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.servlets.tasks.TaskConfiguration Maven / Gradle / Ivy

There is a newer version: 5.0.0-alpha.5
Show newest version
package io.dropwizard.servlets.tasks;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.StringJoiner;

/**
 * A factory for configuring the tasks sub-system for the environment.
 * 

* Configuration Parameters: *

* * * * * * * * * * *
NameDefaultDescription
printStackTraceOnError{@code false}Print the full stack trace when the execution of a task failed.
* * @since 2.0 */ public class TaskConfiguration { private boolean printStackTraceOnError = false; @JsonProperty("printStackTraceOnError") public boolean isPrintStackTraceOnError() { return printStackTraceOnError; } @JsonProperty("printStackTraceOnError") public void setPrintStackTraceOnError(boolean printStackTraceOnError) { this.printStackTraceOnError = printStackTraceOnError; } @Override public String toString() { return new StringJoiner(", ", TaskConfiguration.class.getSimpleName() + "[", "]") .add("printStackTraceOnError=" + printStackTraceOnError) .toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy