Skip to content

Commit 0c15c7e

Browse files
Last updates before release (#491)
1 parent 1db85f7 commit 0c15c7e

File tree

2 files changed

+33
-23
lines changed

2 files changed

+33
-23
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,12 @@ This library follows [Semantic Versioning](https://semver.org/).
287287

288288
The compatibility with Restate is described in the following table:
289289

290-
| Restate Server\sdk-java | 1.0 | 1.1 | 1.2 |
291-
|-------------------------|-----|-----|-----|
292-
| 1.0 ||||
293-
| 1.1 ||||
294-
| 1.2 ||||
290+
| Restate Server\sdk-java | 1.0 | 1.1 | 1.2 | 2.0 |
291+
|-------------------------|-----|-----|-----|-----|
292+
| 1.0 |||||
293+
| 1.1 |||||
294+
| 1.2 |||||
295+
| 1.3 |||||
295296

296297
## Contributing
297298

sdk-api/src/main/java/dev/restate/sdk/JsonSerdes.java

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,21 @@
2323
import org.jspecify.annotations.NonNull;
2424

2525
/**
26-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
26+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
27+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
2728
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
28-
* ctx.awakeable(Integer.TYPE)}
29+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
2930
*/
3031
@Deprecated(since = "2.0", forRemoval = true)
3132
public abstract class JsonSerdes {
3233

3334
private JsonSerdes() {}
3435

3536
/**
36-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
37+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
38+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
3739
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
38-
* ctx.awakeable(Integer.TYPE)}
40+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
3941
*/
4042
@Deprecated(since = "2.0", forRemoval = true)
4143
public static final Serde<@NonNull String> STRING =
@@ -51,9 +53,10 @@ private JsonSerdes() {}
5153
});
5254

5355
/**
54-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
56+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
57+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
5558
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
56-
* ctx.awakeable(Integer.TYPE)}
59+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
5760
*/
5861
@Deprecated(since = "2.0", forRemoval = true)
5962
public static final Serde<@NonNull Boolean> BOOLEAN =
@@ -66,9 +69,10 @@ private JsonSerdes() {}
6669
});
6770

6871
/**
69-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
72+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
73+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
7074
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
71-
* ctx.awakeable(Integer.TYPE)}
75+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
7276
*/
7377
@Deprecated(since = "2.0", forRemoval = true)
7478
public static final Serde<@NonNull Byte> BYTE =
@@ -81,9 +85,10 @@ private JsonSerdes() {}
8185
});
8286

8387
/**
84-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
88+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
89+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
8590
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
86-
* ctx.awakeable(Integer.TYPE)}
91+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
8792
*/
8893
@Deprecated(since = "2.0", forRemoval = true)
8994
public static final Serde<@NonNull Short> SHORT =
@@ -96,9 +101,10 @@ private JsonSerdes() {}
96101
});
97102

98103
/**
99-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
104+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
105+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
100106
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
101-
* ctx.awakeable(Integer.TYPE)}
107+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
102108
*/
103109
@Deprecated(since = "2.0", forRemoval = true)
104110
public static final Serde<@NonNull Integer> INT =
@@ -111,9 +117,10 @@ private JsonSerdes() {}
111117
});
112118

113119
/**
114-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
120+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
121+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
115122
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
116-
* ctx.awakeable(Integer.TYPE)}
123+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
117124
*/
118125
@Deprecated(since = "2.0", forRemoval = true)
119126
public static final Serde<@NonNull Long> LONG =
@@ -126,9 +133,10 @@ private JsonSerdes() {}
126133
});
127134

128135
/**
129-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
136+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
137+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
130138
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
131-
* ctx.awakeable(Integer.TYPE)}
139+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
132140
*/
133141
@Deprecated(since = "2.0", forRemoval = true)
134142
public static final Serde<@NonNull Float> FLOAT =
@@ -141,9 +149,10 @@ private JsonSerdes() {}
141149
});
142150

143151
/**
144-
* @deprecated For primitive types, simply use the overloads of the {@link Context} methods
152+
* @deprecated For primitive types, simply use the overloads of the {@link Context}/{@link
153+
* dev.restate.sdk.common.StateKey}/{@link dev.restate.sdk.common.DurablePromiseKey} methods
145154
* accepting {@link Class}, for example {@code ctx.run(String.class, myClosure)} or {@code
146-
* ctx.awakeable(Integer.TYPE)}
155+
* ctx.awakeable(Integer.TYPE)} or {@code StateKey.of("key", String.class)}
147156
*/
148157
@Deprecated(since = "2.0", forRemoval = true)
149158
public static final Serde<@NonNull Double> DOUBLE =

0 commit comments

Comments
 (0)