A class that manages host names for trace IDs. The intent to register host names via the
addEntry()
method
and retrieve them via the
get()
method.
Furthermore, this repository contains an internal counter, which can be used to automatically remove an entry, when
its counter reaches 0. This can be used to process a stack of
BeforeOperationEvent
s and
AfterOperationEvent
s by calling the
inc()
method when a
BeforeOperationEvent
is processed
and calling the
dec()
method when an
AfterOperationEvent
is processed. Thus the entry in this
repository will be removed after the last
AfterOperationEvent
.