Top Description Inners Constructors Methods
net.sf.ehcache.statistics

public final Class StatisticBuilder

extends Object
Class Inheritance
Imports
java.util.Collections, .HashSet, .Set, org.terracotta.statistics.StatisticsManager, org.terracotta.statistics.observer.OperationObserver

The StatisticBuilder.
Author
cdennis

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
StatisticBuilder.AbstractStatisticBuilder<
the generic type
T extends StatisticBuilder.AbstractStatisticBuilder
>

The Class AbstractStatisticBuilder.

public static class
StatisticBuilder.OperationStatisticBuilder<
the generic type
T extends Enum<T>
>

The Class OperationStatisticBuilder.

Constructor Summary

AccessConstructor and Description
private
StatisticBuilder()

Instantiates a new statistic builder.

Method Summary

Modifier and TypeMethod and Description
public static <
the generic type
T extends Enum<T>
>
StatisticBuilder.OperationStatisticBuilder<T>

Returns:

the operation statistic builder
operation
(Class<T>
the type
type
)

Operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StatisticBuilderback to summary
private StatisticBuilder()

Instantiates a new statistic builder.

Method Detail

operationback to summary
public static <T extends Enum<T>> StatisticBuilder.OperationStatisticBuilder<T> operation(Class<T> type)

Operation.

Parameters
<T>
the generic type
type:Class<T>

the type

Returns:StatisticBuilder.OperationStatisticBuilder<T>

the operation statistic builder

net.sf.ehcache.statistics back to summary

pack-priv Class StatisticBuilder.AbstractStatisticBuilder<T extends StatisticBuilder.AbstractStatisticBuilder>

extends Object
Class Inheritance
  • java.lang.Object
  • net.sf.ehcache.statistics.StatisticBuilder.AbstractStatisticBuilder
Known Direct Subclasses
net.sf.ehcache.statistics.StatisticBuilder.OperationStatisticBuilder
Type Parameters
<T>
the generic type

The Class AbstractStatisticBuilder.

Field Summary

Modifier and TypeField and Description
protected Object
context

The context.

protected String
name

The name.

protected final Set<String>
tags

The tags.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the t
named
(String
the name
name
)

Named.

public T

Returns:

the t
of
(Object
the of
of
)

Of.

public T

Returns:

the t
tag
(String...
the tags
tags
)

Tag.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
protected Object context

The context.

nameback to summary
protected String name

The name.

tagsback to summary
protected final Set<String> tags

The tags.

Constructor Detail

AbstractStatisticBuilderback to summary
pack-priv AbstractStatisticBuilder()

Method Detail

namedback to summary
public T named(String name)

Named.

Parameters
name:String

the name

Returns:T

the t

ofback to summary
public T of(Object of)

Of.

Parameters
of:Object

the of

Returns:T

the t

tagback to summary
public T tag(String... tags)

Tag.

Parameters
tags:String[]

the tags

Returns:T

the t

net.sf.ehcache.statistics back to summary

public Class StatisticBuilder.OperationStatisticBuilder<T extends java.lang.Enum<T>>

extends StatisticBuilder.AbstractStatisticBuilder<StatisticBuilder.OperationStatisticBuilder<T extends Enum<T>>>
Class Inheritance
Type Parameters
<T>
the generic type

The Class OperationStatisticBuilder.

Field Summary

Modifier and TypeField and Description
private final Class<T>
type

The type.

Inherited from net.sf.ehcache.statistics.StatisticBuilder.AbstractStatisticBuilder:
contextnametags

Constructor Summary

AccessConstructor and Description
public
OperationStatisticBuilder(Class<T>
the type
type
)

Instantiates a new operation statistic builder.

Method Summary

Modifier and TypeMethod and Description
public OperationObserver<T>

Returns:

the operation observer
build
()

Builds the.

Inherited from net.sf.ehcache.statistics.StatisticBuilder.AbstractStatisticBuilder:
namedoftag

Field Detail

typeback to summary
private final Class<T> type

The type.

Constructor Detail

OperationStatisticBuilderback to summary
public OperationStatisticBuilder(Class<T> type)

Instantiates a new operation statistic builder.

Parameters
type:Class<T>

the type

Method Detail

buildback to summary
public OperationObserver<T> build()

Builds the.

Returns:OperationObserver<T>

the operation observer