Skip to content

Commit 2b781e6

Browse files
committed
Added experimental api
1 parent 73ad9b5 commit 2b781e6

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package org.dataloader.annotations;
2+
3+
import java.lang.annotation.Documented;
4+
import java.lang.annotation.Retention;
5+
import java.lang.annotation.RetentionPolicy;
6+
import java.lang.annotation.Target;
7+
8+
import static java.lang.annotation.ElementType.CONSTRUCTOR;
9+
import static java.lang.annotation.ElementType.FIELD;
10+
import static java.lang.annotation.ElementType.METHOD;
11+
import static java.lang.annotation.ElementType.TYPE;
12+
13+
/**
14+
* This represents code that the graphql-java project considers experimental API and while our intention is that it will
15+
* progress to be {@link PublicApi}, its existence, signature of behavior may change between releases.
16+
*
17+
* In general unnecessary changes will be avoided but you should not depend on experimental classes being stable
18+
*/
19+
@Retention(RetentionPolicy.RUNTIME)
20+
@Target(value = {CONSTRUCTOR, METHOD, TYPE, FIELD})
21+
@Documented
22+
public @interface ExperimentalApi {
23+
}

src/main/java/org/dataloader/registries/ScheduledDataLoaderRegistry.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.dataloader.DataLoader;
44
import org.dataloader.DataLoaderRegistry;
5-
import org.dataloader.annotations.PublicApi;
5+
import org.dataloader.annotations.ExperimentalApi;
66

77
import java.time.Duration;
88
import java.util.HashMap;
@@ -23,8 +23,10 @@
2323
* <p>
2424
* If you wanted to create a ScheduledDataLoaderRegistry that started a rescheduling immediately, just create one and
2525
* call {@link #rescheduleNow()}.
26+
* <p>
27+
* This code is currently marked as {@link ExperimentalApi}
2628
*/
27-
@PublicApi
29+
@ExperimentalApi
2830
public class ScheduledDataLoaderRegistry extends DataLoaderRegistry implements AutoCloseable {
2931

3032
private final ScheduledExecutorService scheduledExecutorService;

0 commit comments

Comments
 (0)