21
21
22
22
import org .apache .kafka .clients .admin .NewTopic ;
23
23
import org .apache .kafka .clients .consumer .Consumer ;
24
- import org .apache .kafka .clients .consumer .CooperativeStickyAssignor ;
25
- import org .apache .kafka .clients .consumer .RangeAssignor ;
26
- import org .apache .kafka .clients .consumer .RoundRobinAssignor ;
27
- import org .apache .kafka .clients .consumer .StickyAssignor ;
28
24
import org .apache .kafka .clients .producer .Producer ;
29
- import org .apache .kafka .clients .producer .RoundRobinPartitioner ;
30
25
import org .apache .kafka .common .message .CreateTopicsRequestData .CreatableTopic ;
31
26
import org .apache .kafka .common .protocol .Message ;
32
- import org .apache .kafka .common .serialization .ByteArrayDeserializer ;
33
- import org .apache .kafka .common .serialization .ByteArraySerializer ;
34
- import org .apache .kafka .common .serialization .ByteBufferDeserializer ;
35
- import org .apache .kafka .common .serialization .ByteBufferSerializer ;
36
- import org .apache .kafka .common .serialization .BytesDeserializer ;
37
- import org .apache .kafka .common .serialization .BytesSerializer ;
38
- import org .apache .kafka .common .serialization .DoubleDeserializer ;
39
- import org .apache .kafka .common .serialization .DoubleSerializer ;
40
- import org .apache .kafka .common .serialization .FloatDeserializer ;
41
- import org .apache .kafka .common .serialization .FloatSerializer ;
42
- import org .apache .kafka .common .serialization .IntegerDeserializer ;
43
- import org .apache .kafka .common .serialization .IntegerSerializer ;
44
- import org .apache .kafka .common .serialization .ListDeserializer ;
45
- import org .apache .kafka .common .serialization .ListSerializer ;
46
- import org .apache .kafka .common .serialization .LongDeserializer ;
47
- import org .apache .kafka .common .serialization .LongSerializer ;
48
27
import org .apache .kafka .common .serialization .Serdes ;
49
- import org .apache .kafka .common .serialization .StringDeserializer ;
50
- import org .apache .kafka .common .serialization .StringSerializer ;
51
28
import org .apache .kafka .common .utils .AppInfoParser .AppInfo ;
52
29
import org .apache .kafka .common .utils .ImplicitLinkedHashCollection ;
53
30
@@ -140,34 +117,10 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
140
117
141
118
Stream .of (
142
119
AppInfo .class ,
143
- // standard assignors
144
- CooperativeStickyAssignor .class ,
145
- RangeAssignor .class ,
146
- RoundRobinAssignor .class ,
147
- StickyAssignor .class ,
148
120
// standard partitioners
149
121
org .apache .kafka .clients .producer .internals .DefaultPartitioner .class ,
150
- RoundRobinPartitioner .class ,
151
122
org .apache .kafka .clients .producer .UniformStickyPartitioner .class ,
152
123
// standard serialization
153
- ByteArrayDeserializer .class ,
154
- ByteArraySerializer .class ,
155
- ByteBufferDeserializer .class ,
156
- ByteBufferSerializer .class ,
157
- BytesDeserializer .class ,
158
- BytesSerializer .class ,
159
- DoubleSerializer .class ,
160
- DoubleDeserializer .class ,
161
- FloatSerializer .class ,
162
- FloatDeserializer .class ,
163
- IntegerSerializer .class ,
164
- IntegerDeserializer .class ,
165
- ListDeserializer .class ,
166
- ListSerializer .class ,
167
- LongSerializer .class ,
168
- LongDeserializer .class ,
169
- StringDeserializer .class ,
170
- StringSerializer .class ,
171
124
// Spring serialization
172
125
DelegatingByTopicDeserializer .class ,
173
126
DelegatingByTypeSerializer .class ,
@@ -180,17 +133,6 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
180
133
StringOrBytesSerializer .class ,
181
134
ToStringSerializer .class ,
182
135
Serdes .class ,
183
- Serdes .ByteArraySerde .class ,
184
- Serdes .BytesSerde .class ,
185
- Serdes .ByteBufferSerde .class ,
186
- Serdes .DoubleSerde .class ,
187
- Serdes .FloatSerde .class ,
188
- Serdes .IntegerSerde .class ,
189
- Serdes .LongSerde .class ,
190
- Serdes .ShortSerde .class ,
191
- Serdes .StringSerde .class ,
192
- Serdes .UUIDSerde .class ,
193
- Serdes .VoidSerde .class ,
194
136
CRC32C .class )
195
137
.forEach (type -> reflectionHints .registerType (type , builder ->
196
138
builder .withMembers (MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS )));
@@ -200,15 +142,10 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
200
142
201
143
Stream .of (
202
144
"sun.security.provider.ConfigFile" ,
203
- "org.apache.kafka.streams.processor.internals.StreamsPartitionAssignor" ,
204
- "org.apache.kafka.streams.errors.DefaultProductionExceptionHandler" ,
205
- "org.apache.kafka.streams.processor.FailOnInvalidTimestamp" ,
206
- "org.apache.kafka.streams.processor.internals.assignment.HighAvailabilityTaskAssignor" ,
207
145
"org.apache.kafka.streams.processor.internals.assignment.StickyTaskAssignor" ,
208
146
"org.apache.kafka.streams.processor.internals.assignment.FallbackPriorTaskAssignor" ,
209
147
"org.apache.kafka.streams.state.BuiltInDslStoreSuppliers$RocksDBDslStoreSuppliers" ,
210
- "org.apache.kafka.streams.state.BuiltInDslStoreSuppliers$InMemoryDslStoreSuppliers" ,
211
- "org.apache.kafka.streams.errors.LogAndFailExceptionHandler" )
148
+ "org.apache.kafka.streams.state.BuiltInDslStoreSuppliers$InMemoryDslStoreSuppliers" )
212
149
.forEach (type -> reflectionHints .registerTypeIfPresent (classLoader , type , builder ->
213
150
builder .withMembers (MemberCategory .INVOKE_PUBLIC_CONSTRUCTORS )));
214
151
}
0 commit comments