public class EventResourcesImpl extends Object implements EventResources
| Constructor and Description |
|---|
EventResourcesImpl(EventResourcesImpl parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(EventResourcesImpl other) |
void |
forEach(BiConsumer<String,String> process) |
static void |
forEach(List<Object> list,
BiConsumer<String,String> process) |
EventResources |
resource(String key,
Object value)
Add a resource for the event.
|
EventResources |
resource(String key,
Supplier<String> value)
Add a resource for the event using a supplier.
|
public EventResourcesImpl(EventResourcesImpl parent)
public EventResources resource(String key, Object value)
EventResourcesresource in interface EventResourceskey - the key to identify the resourcevalue - the value which will be logged for the resource.
This is converted to a string before logging.public EventResources resource(String key, Supplier<String> value)
EventResourcesresource in interface EventResourceskey - the key to identify the resourcevalue - a supplier which returns the value to be logged for
this resourceEventResources.resource(java.lang.String,java.lang.Object)public void copyFrom(EventResourcesImpl other)
public void forEach(BiConsumer<String,String> process)
public static void forEach(List<Object> list, BiConsumer<String,String> process)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.