Package org.apache.logging.log4j.message
Class StringMapMessage
java.lang.Object
org.apache.logging.log4j.message.MapMessage<StringMapMessage,String>
org.apache.logging.log4j.message.StringMapMessage
- All Implemented Interfaces:
Serializable
,Message
,MultiformatMessage
,MultiFormatStringBuilderFormattable
,StringBuilderFormattable
@AsynchronouslyFormattable
public class StringMapMessage
extends MapMessage<StringMapMessage,String>
A
StringMapMessage
typed to String
-only values. This is like the MapMessage class before 2.9.- Since:
- 2.9
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.logging.log4j.message.MapMessage
MapMessage.MapFormat
-
Constructor Summary
ConstructorDescriptionConstructs a new instance.StringMapMessage
(int initialCapacity) Constructs a new instance.StringMapMessage
(Map<String, String> map) Constructs a new instance based on an existing Map. -
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(Map<String, String> map) Constructs a new instance based on an existing Map.Methods inherited from class org.apache.logging.log4j.message.MapMessage
appendMap, asJava, asJavaUnquoted, asJson, asString, asString, asXml, clear, containsKey, equals, forEach, forEach, formatTo, formatTo, get, getData, getFormat, getFormats, getFormattedMessage, getFormattedMessage, getIndexedReadOnlyStringMap, getParameters, getThrowable, hashCode, put, putAll, remove, toKey, toString, validate, validate, validate, validate, validate, validate, validate, validate, validate, validate, with, with, with, with, with, with, with, with, with, with
-
Constructor Details
-
StringMapMessage
public StringMapMessage()Constructs a new instance. -
StringMapMessage
public StringMapMessage(int initialCapacity) Constructs a new instance.- Parameters:
initialCapacity
- the initial capacity.
-
StringMapMessage
Constructs a new instance based on an existing Map.- Parameters:
map
- The Map.
-
-
Method Details
-
newInstance
Constructs a new instance based on an existing Map.- Overrides:
newInstance
in classMapMessage<StringMapMessage,
String> - Parameters:
map
- The Map.- Returns:
- A new StringMapMessage
-