| Modifier and Type | Method and Description |
|---|---|
Report |
build()
Construct a new report with the provided input.
|
Report.ReportBuilder |
callerParam(Object... callerParameters)
Set the parameters in the caller method.
|
Report.ReportBuilder |
error(Throwable exception)
Set the current exception that occurred.
|
Report.ReportBuilder |
messageParam(Object... messageParameters)
Set the message parameters that are used to construct a message text.
|
Report.ReportBuilder |
rateLimit(long rateLimit)
Set the minimum number of nanoseconds to wait until a report of equal type and parameters
is allowed to be printed again.
|
Report.ReportBuilder |
rateLimit(long rateLimit,
TimeUnit rateUnit)
Set the minimum time to wait until a report of equal type and parameters is allowed to be printed again.
|
Report.ReportBuilder |
type(ReportType type)
Set the current report type.
|
public Report.ReportBuilder type(ReportType type)
type - - report type.public Report.ReportBuilder error(@Nullable Throwable exception)
exception - - exception that occurred.public Report.ReportBuilder messageParam(@Nullable Object... messageParameters)
messageParameters - - parameters for the report type.public Report.ReportBuilder callerParam(@Nullable Object... callerParameters)
callerParameters - - parameters of the caller method.public Report.ReportBuilder rateLimit(long rateLimit)
rateLimit - - number of nanoseconds, or 0 to disable. Cannot be negative.public Report.ReportBuilder rateLimit(long rateLimit, TimeUnit rateUnit)
rateLimit - - the time, or 0 to disable. Cannot be negative.rateUnit - - the unit of the rate limit.public Report build()
Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.