You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce custom HTTP Sink Post Request Callback and its Factory (#23)
* Introduce custom HTTP Sink Post Request Callback
* Address review comments: remove 'Sink' from Callback class name
* Address review comments: make Request type generic
* Address review comments: accept null responses in callback
* Address review comments: set default callback in HttpSink
| connector | required | The Value should be set to _rest-lookup_|
220
+
| format | required | Flink's format name that should be used to decode REST response, Use `json` for a typical REST endpoint. |
221
+
| url | required | The base URL that should be use for GET requests. For example _http://localhost:8080/client_|
222
+
| asyncPolling | optional | true/false - determines whether Async Pooling should be used. Mechanism is based on Flink's Async I/O. |
223
+
| gid.connector.http.lookup.error.code | optional | List of HTTP status codes that should be treated as errors by HTTP Source, separated with comma. |
224
+
| gid.connector.http.lookup.error.code.exclude | optional | List of HTTP status codes that should be excluded from the `gid.connector.http.lookup.error.code` list, separated with comma. |
| connector | required | Specify what connector to use. For HTTP Sink it should be set to _'http-sink'_. |
215
-
| url | required | The base URL that should be use for HTTP requests. For example _http://localhost:8080/client_.|
216
-
| format | required | Specify what format to use. |
217
-
| insert-method | optional | Specify which HTTP method to use in the request. The value should be set either to `POST` or `PUT`. |
218
-
| sink.batch.max-size | optional | Maximum number of elements that may be passed in a batch to be written downstream. |
219
-
| sink.requests.max-inflight | optional | The maximum number of in flight requests that may exist, if any more in flight requests need to be initiated once the maximum has been reached, then it will be blocked until some have completed. |
220
-
| sink.requests.max-buffered | optional | Maximum number of buffered records before applying backpressure. |
221
-
| sink.flush-buffer.size | optional | The maximum size of a batch of entries that may be sent to the HTTP endpoint measured in bytes. |
222
-
| sink.flush-buffer.timeout | optional | Threshold time in milliseconds for an element to be in a buffer before being flushed. |
| connector | required | Specify what connector to use. For HTTP Sink it should be set to _'http-sink'_. |
230
+
| url | required | The base URL that should be use for HTTP requests. For example _http://localhost:8080/client_.|
231
+
| format | required | Specify what format to use. |
232
+
| insert-method | optional | Specify which HTTP method to use in the request. The value should be set either to `POST` or `PUT`. |
233
+
| sink.batch.max-size | optional | Maximum number of elements that may be passed in a batch to be written downstream. |
234
+
| sink.requests.max-inflight | optional | The maximum number of in flight requests that may exist, if any more in flight requests need to be initiated once the maximum has been reached, then it will be blocked until some have completed. |
235
+
| sink.requests.max-buffered | optional | Maximum number of buffered records before applying backpressure. |
236
+
| sink.flush-buffer.size | optional | The maximum size of a batch of entries that may be sent to the HTTP endpoint measured in bytes. |
237
+
| sink.flush-buffer.timeout | optional | Threshold time in milliseconds for an element to be in a buffer before being flushed. |
238
+
| gid.connector.http.sink.request-callback | optional | Specify which `HttpPostRequestCallback` implementation to use. By default, it is set to `slf4j-logger` corresponding to `Slf4jHttpPostRequestCallback`. |
239
+
| gid.connector.http.sink.error.code | optional | List of HTTP status codes that should be treated as errors by HTTP Sink, separated with comma. |
240
+
| gid.connector.http.sink.error.code.exclude | optional | List of HTTP status codes that should be excluded from the `gid.connector.http.sink.error.code` list, separated with comma. |
223
241
224
242
## Build and deployment
225
243
To build the project locally you need to have `maven 3` and Java 11+. </br>
0 commit comments