Class InfinispanResources
- java.lang.Object
-
- org.apache.camel.quarkus.component.infinispan.InfinispanResources
-
@Path("/infinispan") @ApplicationScoped public class InfinispanResources extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAME_CAMELstatic StringCACHE_NAME_QUARKUS(package private) org.infinispan.client.hotrod.RemoteCacheManagercacheManager(package private) org.apache.camel.CamelContextcamelContext(package private) org.apache.camel.ProducerTemplatetemplate
-
Constructor Summary
Constructors Constructor Description InfinispanResources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaggregate(String component)voidclear(String component)voidclearAsync(String component)voidcompute(String component)voidcomputeAsync(String component)BooleancontainsKey(String component)BooleancontainsValue(String component, String value)Stringget(String component, String key)StringgetOrDefault(String component)javax.json.JsonObjectinspectCamelInfinispanClientConfiguration()voidlistener(String component, String mockEndpointUri, String content)voidmanageRoute(String routeId, boolean enabled)Stringput(String component, String content)voidputAll(String component)voidputAllAsync(String component)voidputAsync(String component, String content)voidputIdempotent(String component)StringputIfAbsent(String component, String content)voidputIfAbsentAsync(String component, String content)javax.ws.rs.core.Responsequery(String component)voidremove(String component)voidremoveAsync(String component)voidreplace(String component, String content)voidreplaceAsync(String component, String content)Integersize(String component)Integerstats(String component)
-
-
-
Field Detail
-
CACHE_NAME_CAMEL
public static final String CACHE_NAME_CAMEL
- See Also:
- Constant Field Values
-
CACHE_NAME_QUARKUS
public static final String CACHE_NAME_QUARKUS
- See Also:
- Constant Field Values
-
cacheManager
@Inject org.infinispan.client.hotrod.RemoteCacheManager cacheManager
-
template
@Inject org.apache.camel.ProducerTemplate template
-
camelContext
@Inject org.apache.camel.CamelContext camelContext
-
-
Method Detail
-
inspectCamelInfinispanClientConfiguration
@Path("/inspect") @GET @Produces("application/json") public javax.json.JsonObject inspectCamelInfinispanClientConfiguration()
-
aggregate
@Path("/aggregate") @GET public void aggregate(@QueryParam("component") String component) throws InterruptedException- Throws:
InterruptedException
-
clear
@Path("/clear") @DELETE public void clear(@QueryParam("component") String component)
-
clearAsync
@Path("/clearAsync") @DELETE public void clearAsync(@QueryParam("component") String component) throws ExecutionException, InterruptedException, TimeoutException
-
compute
@Path("/compute") @POST public void compute(@QueryParam("component") String component)
-
computeAsync
@Path("/computeAsync") @POST public void computeAsync(@QueryParam("component") String component) throws ExecutionException, InterruptedException, TimeoutException
-
containsKey
@Path("/containsKey") @GET @Produces("text/plain") public Boolean containsKey(@QueryParam("component") String component)
-
containsValue
@Path("/containsValue") @GET @Produces("text/plain") public Boolean containsValue(@QueryParam("component") String component, @QueryParam("value") String value)
-
listener
@Path("/event/verify") @GET public void listener(@QueryParam("component") String component, @QueryParam("mockEndpointUri") String mockEndpointUri, String content) throws InterruptedException- Throws:
InterruptedException
-
get
@Path("/get") @GET @Produces("text/plain") public String get(@QueryParam("component") String component, @QueryParam("key") String key)
-
getOrDefault
@Path("/getOrDefault") @GET @Produces("text/plain") public String getOrDefault(@QueryParam("component") String component)
-
put
@Path("/put") @POST @Consumes("text/plain") @Produces("text/plain") public String put(@QueryParam("component") String component, String content)
-
putAsync
@Path("/putAsync") @POST @Consumes("text/plain") public void putAsync(@QueryParam("component") String component, String content) throws ExecutionException, InterruptedException, TimeoutException
-
putAll
@Path("/putAll") @POST public void putAll(@QueryParam("component") String component)
-
putAllAsync
@Path("/putAllAsync") @POST public void putAllAsync(@QueryParam("component") String component) throws ExecutionException, InterruptedException, TimeoutException
-
putIdempotent
@Path("/putIdempotent") @GET public void putIdempotent(@QueryParam("component") String component) throws InterruptedException- Throws:
InterruptedException
-
putIfAbsent
@Path("/putIfAbsent") @POST @Consumes("text/plain") @Produces("text/plain") public String putIfAbsent(@QueryParam("component") String component, String content)
-
putIfAbsentAsync
@Path("/putIfAbsentAsync") @POST @Consumes("text/plain") public void putIfAbsentAsync(@QueryParam("component") String component, String content) throws ExecutionException, InterruptedException, TimeoutException
-
query
@Path("/query") @GET @Produces("text/plain") public javax.ws.rs.core.Response query(@QueryParam("component") String component)
-
remove
@Path("/remove") @DELETE public void remove(@QueryParam("component") String component)
-
removeAsync
@Path("/removeAsync") @DELETE public void removeAsync(@QueryParam("component") String component) throws ExecutionException, InterruptedException, TimeoutException
-
replace
@Path("/replace") @PATCH @Consumes("text/plain") public void replace(@QueryParam("component") String component, String content)
-
replaceAsync
@Path("/replaceAsync") @PATCH @Consumes("text/plain") public void replaceAsync(@QueryParam("component") String component, String content) throws ExecutionException, InterruptedException, TimeoutException
-
size
@Path("/size") @GET @Produces("text/plain") public Integer size(@QueryParam("component") String component)
-
stats
@Path("/stats") @GET @Produces("text/plain") public Integer stats(@QueryParam("component") String component)
-
-