Skip to content

Commit f3cffda

Browse files
committed
Bump version to 0.27.0
1 parent b5b6d48 commit f3cffda

8 files changed

Lines changed: 54 additions & 54 deletions

core/src/main/java/dev/faststats/FastStatsContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public sealed interface FastStatsContext permits SimpleContext {
6464
* Gets the performance analyzer bound to this context.
6565
*
6666
* @return the context performance analyzer, if one was configured
67-
* @since 0.26.0
67+
* @since 0.27.0
6868
*/
6969
@Contract(pure = true)
7070
Optional<PerformanceAnalyzer> performanceAnalyzer();

core/src/main/java/dev/faststats/FlightEvents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* <p>
88
* Source: <a href="https://bestsolution-at.github.io/jfr-doc/openjdk-matrix.html">OpenJDK JFR event matrix</a>.
99
*
10-
* @since 0.26.0
10+
* @since 0.27.0
1111
*/
1212
public final class FlightEvents {
1313
// Java 11: https://bestsolution-at.github.io/jfr-doc/openjdk-11.html

core/src/main/java/dev/faststats/JfrPerformanceOptions.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
/**
1010
* JFR performance collection options.
1111
*
12-
* @since 0.26.0
12+
* @since 0.27.0
1313
*/
1414
public sealed interface JfrPerformanceOptions permits SimpleJfrPerformanceOptions {
1515
/**
1616
* Creates a JFR performance options factory.
1717
*
1818
* @return the factory
19-
* @since 0.26.0
19+
* @since 0.27.0
2020
*/
2121
@Contract(value = " -> new", pure = true)
2222
static Factory factory() {
@@ -27,7 +27,7 @@ static Factory factory() {
2727
* Gets the maximum retained event age while a recorder is running.
2828
*
2929
* @return the recording duration
30-
* @since 0.26.0
30+
* @since 0.27.0
3131
*/
3232
@Contract(pure = true)
3333
Duration duration();
@@ -36,7 +36,7 @@ static Factory factory() {
3636
* Gets the JFR event names to enable and summarize.
3737
*
3838
* @return the enabled event names
39-
* @since 0.26.0
39+
* @since 0.27.0
4040
*/
4141
@Contract(pure = true)
4242
Set<String> eventNames();
@@ -45,7 +45,7 @@ static Factory factory() {
4545
* Gets the maximum number of events to read from one recording.
4646
*
4747
* @return the maximum event count
48-
* @since 0.26.0
48+
* @since 0.27.0
4949
*/
5050
@Contract(pure = true)
5151
int maxEvents();
@@ -54,7 +54,7 @@ static Factory factory() {
5454
* Gets the optional class loader used for stack-frame attribution.
5555
*
5656
* @return the attribution class loader
57-
* @since 0.26.0
57+
* @since 0.27.0
5858
*/
5959
@Contract(pure = true)
6060
@Nullable ClassLoader attributionLoader();
@@ -63,23 +63,23 @@ static Factory factory() {
6363
* Creates a factory pre-populated with this options instance.
6464
*
6565
* @return the pre-populated factory
66-
* @since 0.26.0
66+
* @since 0.27.0
6767
*/
6868
@Contract(value = " -> new", pure = true)
6969
Factory toFactory();
7070

7171
/**
7272
* JFR performance options factory.
7373
*
74-
* @since 0.26.0
74+
* @since 0.27.0
7575
*/
7676
sealed interface Factory permits SimpleJfrPerformanceOptions.Factory {
7777
/**
7878
* Configures the maximum retained event age while a recorder is running.
7979
*
8080
* @param duration the recording duration
8181
* @return this factory
82-
* @since 0.26.0
82+
* @since 0.27.0
8383
*/
8484
@Contract(value = "_ -> this", mutates = "this")
8585
Factory duration(Duration duration);
@@ -89,7 +89,7 @@ sealed interface Factory permits SimpleJfrPerformanceOptions.Factory {
8989
*
9090
* @param eventNames the enabled event names
9191
* @return this factory
92-
* @since 0.26.0
92+
* @since 0.27.0
9393
*/
9494
@Contract(value = "_ -> this", mutates = "this")
9595
Factory eventNames(Set<String> eventNames);
@@ -99,7 +99,7 @@ sealed interface Factory permits SimpleJfrPerformanceOptions.Factory {
9999
*
100100
* @param maxEvents the maximum event count
101101
* @return this factory
102-
* @since 0.26.0
102+
* @since 0.27.0
103103
*/
104104
@Contract(value = "_ -> this", mutates = "this")
105105
Factory maxEvents(int maxEvents);
@@ -109,7 +109,7 @@ sealed interface Factory permits SimpleJfrPerformanceOptions.Factory {
109109
*
110110
* @param loader the attribution class loader
111111
* @return this factory
112-
* @since 0.26.0
112+
* @since 0.27.0
113113
*/
114114
@Contract(value = "_ -> this", mutates = "this")
115115
Factory attributionLoader(@Nullable ClassLoader loader);
@@ -118,7 +118,7 @@ sealed interface Factory permits SimpleJfrPerformanceOptions.Factory {
118118
* Creates the JFR performance options.
119119
*
120120
* @return the JFR performance options
121-
* @since 0.26.0
121+
* @since 0.27.0
122122
*/
123123
@Contract(value = " -> new", pure = true)
124124
JfrPerformanceOptions create();

core/src/main/java/dev/faststats/PerformanceAnalyzer.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
/**
1414
* Runtime performance analyzer.
1515
*
16-
* @since 0.26.0
16+
* @since 0.27.0
1717
*/
1818
public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
1919
/**
2020
* Wraps a data source so SQL calls made through acquired connections are timed.
2121
*
2222
* @param dataSource the source to wrap
2323
* @return the wrapped data source
24-
* @since 0.26.0
24+
* @since 0.27.0
2525
*/
2626
@Contract(value = "_ -> new", pure = true)
2727
DataSource wrap(DataSource dataSource);
@@ -31,7 +31,7 @@ public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
3131
*
3232
* @param connection the connection to wrap
3333
* @return the wrapped connection
34-
* @since 0.26.0
34+
* @since 0.27.0
3535
*/
3636
@Contract(value = "_ -> new", pure = true)
3737
Connection wrap(Connection connection);
@@ -42,7 +42,7 @@ public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
4242
* The returned recorder owns the recording and dumps/summarizes it when stopped.
4343
*
4444
* @return the started recorder
45-
* @since 0.26.0
45+
* @since 0.27.0
4646
*/
4747
@CheckReturnValue
4848
FlightRecorder recordJfrSnapshot();
@@ -52,7 +52,7 @@ public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
5252
*
5353
* @param name the recording name
5454
* @param runnable the runnable to time
55-
* @since 0.26.0
55+
* @since 0.27.0
5656
*/
5757
void record(String name, Runnable runnable);
5858

@@ -64,7 +64,7 @@ public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
6464
* @param <T> the return type
6565
* @return the callable result
6666
* @throws Exception if the callable fails
67-
* @since 0.26.0
67+
* @since 0.27.0
6868
*/
6969
<T> T record(String name, Callable<T> callable) throws Exception;
7070

@@ -73,7 +73,7 @@ public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
7373
*
7474
* @param name the recording name
7575
* @return the started time recording
76-
* @since 0.26.0
76+
* @since 0.27.0
7777
*/
7878
@CheckReturnValue
7979
TimeRecording startRecording(String name);
@@ -82,29 +82,29 @@ public sealed interface PerformanceAnalyzer permits SimplePerformanceAnalyzer {
8282
* Uploads the currently collected performance data.
8383
*
8484
* @return {@code true} if the upload succeeded
85-
* @since 0.26.0
85+
* @since 0.27.0
8686
*/
8787
boolean flush();
8888

8989
/**
9090
* Shuts the analyzer down and performs a best-effort final upload.
9191
*
92-
* @since 0.26.0
92+
* @since 0.27.0
9393
*/
9494
void shutdown();
9595

9696
/**
9797
* Performance analyzer factory.
9898
*
99-
* @since 0.26.0
99+
* @since 0.27.0
100100
*/
101101
sealed interface Factory permits SimplePerformanceAnalyzer.Factory {
102102
/**
103103
* Configures SQL collection.
104104
*
105105
* @param options SQL options
106106
* @return this factory
107-
* @since 0.26.0
107+
* @since 0.27.0
108108
*/
109109
@Contract(value = "_ -> this", mutates = "this")
110110
Factory sql(SqlPerformanceOptions options);
@@ -114,7 +114,7 @@ sealed interface Factory permits SimplePerformanceAnalyzer.Factory {
114114
*
115115
* @param options JFR options
116116
* @return this factory
117-
* @since 0.26.0
117+
* @since 0.27.0
118118
*/
119119
@Contract(value = "_ -> this", mutates = "this")
120120
Factory jfr(JfrPerformanceOptions options);
@@ -123,7 +123,7 @@ sealed interface Factory permits SimplePerformanceAnalyzer.Factory {
123123
* Creates the analyzer.
124124
*
125125
* @return the analyzer
126-
* @since 0.26.0
126+
* @since 0.27.0
127127
*/
128128
@Contract(value = " -> new", pure = true)
129129
PerformanceAnalyzer create();
@@ -132,14 +132,14 @@ sealed interface Factory permits SimplePerformanceAnalyzer.Factory {
132132
/**
133133
* A running JFR recorder.
134134
*
135-
* @since 0.26.0
135+
* @since 0.27.0
136136
*/
137137
sealed interface FlightRecorder extends AutoCloseable permits NoopFlightRecorder, SimpleFlightRecorder {
138138
/**
139139
* Gets the underlying JFR recording for caller mutation.
140140
*
141141
* @return the running recording
142-
* @since 0.26.0
142+
* @since 0.27.0
143143
*/
144144
@Contract(pure = true)
145145
Recording recording();
@@ -148,15 +148,15 @@ sealed interface FlightRecorder extends AutoCloseable permits NoopFlightRecorder
148148
* Gets whether this recorder has already been stopped.
149149
*
150150
* @return {@code true} if stopped
151-
* @since 0.26.0
151+
* @since 0.27.0
152152
*/
153153
@Contract(pure = true)
154154
boolean isClosed();
155155

156156
/**
157157
* Stops this recording.
158158
*
159-
* @since 0.26.0
159+
* @since 0.27.0
160160
*/
161161
@Override
162162
void close();
@@ -165,29 +165,29 @@ sealed interface FlightRecorder extends AutoCloseable permits NoopFlightRecorder
165165
/**
166166
* A manually controlled time recording.
167167
*
168-
* @since 0.26.0
168+
* @since 0.27.0
169169
*/
170170
sealed interface TimeRecording extends AutoCloseable permits SimplePerformanceAnalyzer.SimpleTimeRecording {
171171
/**
172172
* Stops this recording as failed and stores its duration.
173173
*
174-
* @since 0.26.0
174+
* @since 0.27.0
175175
*/
176176
void fail();
177177

178178
/**
179179
* Gets whether this recording has already been stopped.
180180
*
181181
* @return {@code true} if stopped
182-
* @since 0.26.0
182+
* @since 0.27.0
183183
*/
184184
@Contract(pure = true)
185185
boolean isClosed();
186186

187187
/**
188188
* Stops this recording.
189189
*
190-
* @since 0.26.0
190+
* @since 0.27.0
191191
*/
192192
@Override
193193
void close();

core/src/main/java/dev/faststats/SimpleContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public F featureFlagService(final Function<FeatureFlagService.Factory, FeatureFl
232232
*
233233
* @param performanceAnalyzer a function that receives a new analyzer factory and returns the built analyzer
234234
* @return this factory
235-
* @since 0.26.0
235+
* @since 0.27.0
236236
*/
237237
@Contract(value = "_ -> this", mutates = "this")
238238
public F performanceAnalyzer(final Function<PerformanceAnalyzer.Factory, PerformanceAnalyzer> performanceAnalyzer) {

core/src/main/java/dev/faststats/SimplePerformanceAnalyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/**
3838
* Simple performance analyzer implementation.
3939
*
40-
* @since 0.26.0
40+
* @since 0.27.0
4141
*/
4242
final class SimplePerformanceAnalyzer extends SubmissionService implements PerformanceAnalyzer {
4343
private static final String PERFORMANCE_PATH = "/v1/performance";
@@ -625,7 +625,7 @@ private JsonObject toJson() {
625625
/**
626626
* Simple performance analyzer factory.
627627
*
628-
* @since 0.26.0
628+
* @since 0.27.0
629629
*/
630630
public static final class Factory implements PerformanceAnalyzer.Factory {
631631
private final SimpleContext context;

0 commit comments

Comments
 (0)