public class QueueProcessor extends Object
| Constructor and Description |
|---|
QueueProcessor(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient httpClient,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler) |
QueueProcessor(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient httpClient,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
QueueCircuitBreaker queueCircuitBreaker) |
QueueProcessor(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient httpClient,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
QueueCircuitBreaker queueCircuitBreaker,
boolean immediatelyStartQueueProcessing) |
| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.http.HttpClient |
getHttpClient() |
String |
getQueueProcessorAddress() |
static boolean |
httpMethodIsQueueable(io.vertx.core.http.HttpMethod method)
Answers if specified method is valid for queueing.
|
boolean |
isQueueProcessingStarted() |
void |
startQueueProcessing() |
void |
stopQueueProcessing() |
public QueueProcessor(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient httpClient,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler)
public QueueProcessor(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient httpClient,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
QueueCircuitBreaker queueCircuitBreaker)
public QueueProcessor(io.vertx.core.Vertx vertx,
io.vertx.core.http.HttpClient httpClient,
org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler,
QueueCircuitBreaker queueCircuitBreaker,
boolean immediatelyStartQueueProcessing)
public void startQueueProcessing()
public void stopQueueProcessing()
public boolean isQueueProcessingStarted()
public String getQueueProcessorAddress()
public static boolean httpMethodIsQueueable(io.vertx.core.http.HttpMethod method)
Answers if specified method is valid for queueing.
QueueProcessor will only be able to deliver requests where
HttpRequest.HttpRequest(JsonObject) will NOT throw. Therefore
there's no sense to enqueue a request which we cannot process in
startQueueProcessing().
public io.vertx.core.http.HttpClient getHttpClient()
Copyright © 2016–2021. All rights reserved.