Class MeterIdPrefix
java.lang.Object
com.linecorp.armeria.common.metric.MeterIdPrefix
public final class MeterIdPrefix extends Object
-
Constructor Summary
Constructors Constructor Description MeterIdPrefix(String name)
Creates a new instance with noTag
s.MeterIdPrefix(String name, Iterable<Tag> tags)
Creates a new instance.MeterIdPrefix(String name, String... tags)
Creates a new instance. -
Method Summary
Modifier and Type Method Description MeterIdPrefix
append(String suffix)
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
.MeterIdPrefix
appendWithTags(String suffix, Iterable<Tag> tags)
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
.MeterIdPrefix
appendWithTags(String suffix, String... tags)
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
.boolean
equals(Object obj)
int
hashCode()
String
name()
Returns the name.String
name(String suffix)
Returns the name concatenated by the specifiedsuffix
.List<Tag>
tags()
Returns theTag
s.List<Tag>
tags(Iterable<Tag> tags)
Returns theTag
s concatenated by the specifiedtags
.List<Tag>
tags(String... tags)
Returns theTag
s concatenated by the specifiedtags
.String
toString()
MeterIdPrefix
withTags(Iterable<Tag> tags)
Returns a newly-created instance whose name is concatenated by the specifiedtags
.MeterIdPrefix
withTags(String... tags)
Returns a newly-created instance whose name is concatenated by the specifiedtags
.
-
Constructor Details
-
MeterIdPrefix
Creates a new instance with noTag
s.- Parameters:
name
- theMeter
name
-
MeterIdPrefix
Creates a new instance. -
MeterIdPrefix
Creates a new instance.
-
-
Method Details
-
name
Returns the name. -
name
Returns the name concatenated by the specifiedsuffix
. -
tags
Returns theTag
s. -
tags
Returns theTag
s concatenated by the specifiedtags
. -
tags
Returns theTag
s concatenated by the specifiedtags
. -
append
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
. -
appendWithTags
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
. -
appendWithTags
Returns a newly-created instance whose name is concatenated by the specifiedsuffix
andtags
. -
withTags
Returns a newly-created instance whose name is concatenated by the specifiedtags
. -
withTags
Returns a newly-created instance whose name is concatenated by the specifiedtags
. -
hashCode
public int hashCode() -
equals
-
toString
-