org.terracotta.statistics
Class StatisticBuilder.OperationStatisticBuilder<T extends Enum<T>>

java.lang.Object
  extended by org.terracotta.statistics.StatisticBuilder.OperationStatisticBuilder<T>
Type Parameters:
T - the generic type
Enclosing class:
StatisticBuilder

public static class StatisticBuilder.OperationStatisticBuilder<T extends Enum<T>>
extends Object

The Class OperationStatisticBuilder.


Field Summary
protected  Object context
          The context.
protected  String name
          The name.
protected  Map<String,Object> properties
          The properties.
protected  Set<String> tags
          The tags.
 
Constructor Summary
StatisticBuilder.OperationStatisticBuilder(Class<T> type)
          Instantiates a new operation statistic builder.
 
Method Summary
 OperationObserver<T> build()
          Builds the.
 T named(String name)
          Named.
 T of(Object of)
          Of.
 T property(String key, Object value)
          Tag.
 T tag(String... tags)
          Tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tags

protected final Set<String> tags
The tags.


properties

protected final Map<String,Object> properties
The properties.


context

protected Object context
The context.


name

protected String name
The name.

Constructor Detail

StatisticBuilder.OperationStatisticBuilder

public StatisticBuilder.OperationStatisticBuilder(Class<T> type)
Instantiates a new operation statistic builder.

Parameters:
type - the type
Method Detail

build

public OperationObserver<T> build()
Builds the.

Returns:
the operation observer

of

public T of(Object of)
Of.

Parameters:
of - the of
Returns:
the builder

named

public T named(String name)
Named.

Parameters:
name - the name
Returns:
the builder

tag

public T tag(String... tags)
Tag.

Parameters:
tags - the tags
Returns:
the builder

property

public T property(String key,
                  Object value)
Tag.

Parameters:
key - the property key
value - the property value
Returns:
the builder


Copyright © 2017. All rights reserved.