Commit e872d75
authored
Another round of API clean-up (#2996)
- Removed all deprecated classes, fields and methods from the public
API.
- The `-Dcom.linecorp.armeria.useLegacyMeterNames` flag does not work
anymore.
- Removed `HTTP_` or `Http` from various fields and methods.
- `ClientOptions`:
- `HTTP_HEADERS` -> `HEADERS`
- `httpHeaders()` -> `headers()`
- `Clients`:
- `withHttpHeader()` -> `withHeader()`
- `withHttpHeaders()` -> `withHeaders()`
- `AbstractClientOptionsBuilder` and all its subtypes
- `setHttpHeader()` -> `setHeader()`
- `setHttpHeaders()` -> `setHeaders()`
- `addHttpHeader()` -> `addHeader()`
- `addHttpHeaders()` -> `addHeaders()`
- Removed redundant `add` prefix to some builder methods.
- `RequestContextExporterBuilder`
- `addBuiltIn()` -> `builtIn()`
- `addAttribute()` -> `attr()`
- `addRequestHeader()` -> `requestHeader()`
- `addResponseHeader()` -> `responseHeader()`
- `addKeyPattern()` -> `keyPattern()`
- `KeyStoreCredentialResolverBuilder`
- `addKeyPassword()` -> `keyPassword()`
- `addKeyPasswords()` -> `keyPasswords()`
- `DocService`, `DocServiceBuilder`, and their related things
- `exampleHttpHeaders` -> `exampleHeaders`
- `exampleRequest()` -> `exampleRequests()`
- `exampleRequestForMethod()` -> `exampleRequests()`
- Removed `exampleRequests(Object...)` to avoid ambiguity.
- `injectedScript()` -> `injectedScripts()`
- Removed `http_` from all query parameters
- `http_headers` -> `headers`
- `http_headers_sticky` -> `sticky_headers`
- `AbstractRequestContextBuilder` and all its subtypes
- `remoteAddress()` and `localAddress()` now accept `SocketAddress`
instead of `InetSocketAddress`, so that we have more options when we
add other transports such as Unix domain socket.
- `ServerListenerBuilder`
- `addStartingCallback()` -> `whenStarting()`
- `addStartedCallback()` -> `whenStarted()`
- `addStopingCallback()` -> `whenStoping()`
- `addStopedCallback()` -> `whenStoped()`
- Removed all methods that accept `Runnable` in favor of those that
accept `Consumer`.
- Fixed the type parameters of `Iterable`s.
- `EncodingServiceBuilder`
- `encodableContentTypePredicate()` -> `encodableContentTypes()`
- `encodableRequestHeadersPredicate()` -> `encodableRequestHeaders()`
- `TokenBucketThrottlingStrategyBuilder` /cc @max904-github
- Removed the `with` from the builder methods.
- `withMinimumBackoff()` -> `minimumBackoff()`
- `withHeadersScheme()` -> `headersScheme()`
- Miscellaneous:
- Precalculate the hash code of `DefaultRoute`.
- Allow binding `ServiceWithRoutes` without specifying any routes.
- This allows a user to bind a `GrpcService` without binding any routes explicitly.1 parent a16e2c0 commit e872d75
156 files changed
Lines changed: 928 additions & 4675 deletions
File tree
- bucket4j/src
- main/java/com/linecorp/armeria/server/throttling/bucket4j
- test/java/com/linecorp/armeria/server/throttling/bucket4j
- core/src
- main/java/com/linecorp/armeria
- client
- circuitbreaker
- endpoint
- healthcheck
- retry
- common
- logging
- metric
- internal
- common
- metric
- util
- server
- server
- docs
- encoding
- file
- throttling
- test/java/com/linecorp/armeria
- client
- retry
- common
- logging
- metric
- internal/server/annotation
- server
- docs-client/src
- containers/MethodPage
- lib
- dropwizard2/src/main/java/com/linecorp/armeria/dropwizard
- eureka/src/main/java/com/linecorp/armeria
- client/eureka
- server/eureka
- examples
- grpc-kotlin/src/main/kotlin/example/armeria/grpc/kotlin
- grpc-reactor/src/main/java/example/armeria/grpc/reactor
- grpc-scala/src/main/scala/example/armeria/grpc/scala
- grpc/src/main/java/example/armeria/grpc
- saml-service-provider/src/main/java/example/armeria/server/saml/sp
- grpc/src
- main/java/com/linecorp/armeria/internal/server/grpc
- test/java/com/linecorp/armeria
- client/grpc
- internal/server/grpc
- it/grpc
- logback/src/main/java/com/linecorp/armeria/common/logback
- retrofit2/src
- main/java/com/linecorp/armeria/client/retrofit2
- test/java/com/linecorp/armeria/client/retrofit2
- saml/src/main/java/com/linecorp/armeria/server/saml
- site/src/pages/docs
- spring
- boot2-autoconfigure/src
- main/java/com/linecorp/armeria
- internal/spring
- spring
- test/java/com/linecorp/armeria
- internal/spring
- spring
- boot2-webflux-autoconfigure/src/main/java/com/linecorp/armeria/spring/web/reactive
- thrift0.13/src
- main/java/com/linecorp/armeria/common/thrift/text
- test/java/com/linecorp/armeria
- client/thrift
- internal/server/thrift
- it/thrift
- server/thrift
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
Lines changed: 19 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
Lines changed: 2 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 68 | | |
80 | 69 | | |
81 | 70 | | |
| |||
93 | 82 | | |
94 | 83 | | |
95 | 84 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 85 | | |
108 | 86 | | |
109 | 87 | | |
| |||
121 | 99 | | |
122 | 100 | | |
123 | 101 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 102 | | |
136 | 103 | | |
137 | 104 | | |
| |||
147 | 114 | | |
148 | 115 | | |
149 | 116 | | |
150 | | - | |
| 117 | + | |
151 | 118 | | |
152 | 119 | | |
153 | 120 | | |
| |||
173 | 140 | | |
174 | 141 | | |
175 | 142 | | |
176 | | - | |
| 143 | + | |
177 | 144 | | |
178 | 145 | | |
179 | 146 | | |
| |||
187 | 154 | | |
188 | 155 | | |
189 | 156 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 157 | | |
202 | 158 | | |
203 | 159 | | |
| |||
223 | 179 | | |
224 | 180 | | |
225 | 181 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 182 | | |
238 | 183 | | |
239 | 184 | | |
| |||
Lines changed: 0 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
| |||
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 54 | | |
67 | 55 | | |
68 | 56 | | |
| |||
104 | 92 | | |
105 | 93 | | |
106 | 94 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 95 | | |
120 | 96 | | |
121 | 97 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| |||
0 commit comments