public static class StringConstructBenchmark.AppenderState extends Object
| Modifier and Type | Field and Description |
|---|---|
private Appendable |
appender
The appender that is currently used.
|
String |
appenderType
The type of the appender to be initialised.
|
int |
maxAppends
The maximum number of appends before resetting the appender.
|
private int |
nAppends
The number of append operations performed so far.
|
| Constructor and Description |
|---|
AppenderState() |
| Modifier and Type | Method and Description |
|---|---|
(package private) Appendable |
getOrCreateAppender() |
private void |
reset() |
void |
setup() |
public String appenderType
public int maxAppends
If the value is small then the appender is reinitialized very often, making the instantiation of the appender the dominant operation of the benchmark.
private Appendable appender
private int nAppends
public void setup()
private void reset()
Appendable getOrCreateAppender()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.