| Modifier | Constructor and Description |
|---|---|
protected |
MessageSupplier() |
| Modifier and Type | Method and Description |
|---|---|
static MessageSupplier |
create(String message)
Creates a
MessageSupplier for the specified message. |
static MessageSupplier |
create(String template,
String... args)
Creates a
MessageSupplier for the specified template and args. |
abstract Message |
get()
Returns the
Message for a TraceEntry. |
public static MessageSupplier create(@Nullable String message)
MessageSupplier for the specified message.public static MessageSupplier create(String template, @Nullable String... args)
MessageSupplier for the specified template and args.
The template can contain one or more placeholders {} that will be
substituted if/when the message text is needed by the specified args.public abstract Message get()
Message for a TraceEntry.
The Message does not need to be thread safe if it is instantiated by the
implementation of this method.Copyright © 2011–2017 Glowroot contributors. All rights reserved.