public class CachingWebClient extends Object
CachingWebClient
.
This client wraps a WebClient
and makes it cache aware by adding features to it:
The client honors the following cache headers:
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<CachingWebClient> |
__TYPE_ARG |
Constructor and Description |
---|
CachingWebClient(io.vertx.ext.web.client.CachingWebClient delegate) |
CachingWebClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static WebClient |
create(WebClient webClient)
Create a cache aware web client using the provided
WebClient . |
static WebClient |
create(WebClient webClient,
io.vertx.ext.web.client.spi.CacheStore cacheStore)
Create a cache aware web client using the provided
WebClient . |
static WebClient |
create(WebClient webClient,
io.vertx.ext.web.client.spi.CacheStore cacheStore,
io.vertx.ext.web.client.CachingWebClientOptions options)
Create a cache aware web client using the provided
WebClient . |
static WebClient |
create(WebClient webClient,
io.vertx.ext.web.client.CachingWebClientOptions options)
Create a cache aware web client using the provided
WebClient . |
boolean |
equals(Object o) |
io.vertx.ext.web.client.CachingWebClient |
getDelegate() |
int |
hashCode() |
static CachingWebClient |
newInstance(io.vertx.ext.web.client.CachingWebClient arg) |
String |
toString() |
public static final TypeArg<CachingWebClient> __TYPE_ARG
public CachingWebClient(io.vertx.ext.web.client.CachingWebClient delegate)
public CachingWebClient(Object delegate)
public io.vertx.ext.web.client.CachingWebClient getDelegate()
public static WebClient create(WebClient webClient)
WebClient
.webClient
- the web client instancepublic static WebClient create(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore)
WebClient
.webClient
- the web client instancecacheStore
- the cache adapterpublic static WebClient create(WebClient webClient, io.vertx.ext.web.client.CachingWebClientOptions options)
WebClient
.webClient
- the web client instanceoptions
- the caching web client optionspublic static WebClient create(WebClient webClient, io.vertx.ext.web.client.spi.CacheStore cacheStore, io.vertx.ext.web.client.CachingWebClientOptions options)
WebClient
.webClient
- the web client instancecacheStore
- the cache adapteroptions
- the caching web client optionspublic static CachingWebClient newInstance(io.vertx.ext.web.client.CachingWebClient arg)
Copyright © 2021 Eclipse. All rights reserved.