Interface InstantPatternFormatter
-
- All Superinterfaces:
InstantFormatter
- All Known Implementing Classes:
InstantPatternDynamicFormatter,InstantPatternDynamicFormatter.AbstractFormatter,InstantPatternLegacyFormatter,InstantPatternThreadLocalCachedFormatter
public interface InstantPatternFormatter extends InstantFormatter
Contract for formattingInstants using a date and time formatting pattern.Internal usage only!
This class is intended only for internal Log4j usage. Log4j users should not use this class! This class is not subject to any backward compatibility concerns.
- Since:
- 2.25.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classInstantPatternFormatter.Builder
-
Field Summary
Fields Modifier and Type Field Description static booleanLEGACY_FORMATTERS_ENABLED
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.LocalegetLocale()java.lang.StringgetPattern()java.util.TimeZonegetTimeZone()static InstantPatternFormatter.BuildernewBuilder()-
Methods inherited from interface org.apache.logging.log4j.core.util.internal.instant.InstantFormatter
format, formatTo, getPrecision
-
-
-
-
Method Detail
-
getPattern
java.lang.String getPattern()
-
getLocale
java.util.Locale getLocale()
-
getTimeZone
java.util.TimeZone getTimeZone()
-
newBuilder
static InstantPatternFormatter.Builder newBuilder()
-
-