23
23
import org .jspecify .annotations .NonNull ;
24
24
25
25
/**
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
27
28
* 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)}
29
30
*/
30
31
@ Deprecated (since = "2.0" , forRemoval = true )
31
32
public abstract class JsonSerdes {
32
33
33
34
private JsonSerdes () {}
34
35
35
36
/**
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
37
39
* 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)}
39
41
*/
40
42
@ Deprecated (since = "2.0" , forRemoval = true )
41
43
public static final Serde <@ NonNull String > STRING =
@@ -51,9 +53,10 @@ private JsonSerdes() {}
51
53
});
52
54
53
55
/**
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
55
58
* 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)}
57
60
*/
58
61
@ Deprecated (since = "2.0" , forRemoval = true )
59
62
public static final Serde <@ NonNull Boolean > BOOLEAN =
@@ -66,9 +69,10 @@ private JsonSerdes() {}
66
69
});
67
70
68
71
/**
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
70
74
* 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)}
72
76
*/
73
77
@ Deprecated (since = "2.0" , forRemoval = true )
74
78
public static final Serde <@ NonNull Byte > BYTE =
@@ -81,9 +85,10 @@ private JsonSerdes() {}
81
85
});
82
86
83
87
/**
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
85
90
* 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)}
87
92
*/
88
93
@ Deprecated (since = "2.0" , forRemoval = true )
89
94
public static final Serde <@ NonNull Short > SHORT =
@@ -96,9 +101,10 @@ private JsonSerdes() {}
96
101
});
97
102
98
103
/**
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
100
106
* 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)}
102
108
*/
103
109
@ Deprecated (since = "2.0" , forRemoval = true )
104
110
public static final Serde <@ NonNull Integer > INT =
@@ -111,9 +117,10 @@ private JsonSerdes() {}
111
117
});
112
118
113
119
/**
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
115
122
* 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)}
117
124
*/
118
125
@ Deprecated (since = "2.0" , forRemoval = true )
119
126
public static final Serde <@ NonNull Long > LONG =
@@ -126,9 +133,10 @@ private JsonSerdes() {}
126
133
});
127
134
128
135
/**
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
130
138
* 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)}
132
140
*/
133
141
@ Deprecated (since = "2.0" , forRemoval = true )
134
142
public static final Serde <@ NonNull Float > FLOAT =
@@ -141,9 +149,10 @@ private JsonSerdes() {}
141
149
});
142
150
143
151
/**
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
145
154
* 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)}
147
156
*/
148
157
@ Deprecated (since = "2.0" , forRemoval = true )
149
158
public static final Serde <@ NonNull Double > DOUBLE =
0 commit comments