public interface ProducerCache extends Service
Modifier and Type | Interface and Description |
---|---|
static interface |
ProducerCache.AsyncProducerCallback
Callback for sending a exchange message to a endpoint using an
AsyncProcessor capable producer. |
Modifier and Type | Method and Description |
---|---|
AsyncProducer |
acquireProducer(Endpoint endpoint) |
CompletableFuture<Exchange> |
asyncSendExchange(Endpoint endpoint,
ExchangePattern pattern,
Processor processor,
Processor resultProcessor,
Exchange inExchange,
CompletableFuture<Exchange> exchangeFuture) |
void |
cleanUp() |
boolean |
doInAsyncProducer(Endpoint endpoint,
Exchange exchange,
AsyncCallback callback,
ProducerCache.AsyncProducerCallback asyncProducerCallback) |
int |
getCapacity() |
EndpointUtilizationStatistics |
getEndpointUtilizationStatistics() |
long |
getEvicted() |
long |
getHits() |
long |
getMisses() |
Object |
getSource() |
boolean |
isEventNotifierEnabled() |
void |
purge() |
void |
releaseProducer(Endpoint endpoint,
AsyncProducer producer) |
void |
resetCacheStatistics() |
Exchange |
send(Endpoint endpoint,
Exchange exchange,
Processor resultProcessor) |
void |
setEventNotifierEnabled(boolean eventNotifierEnabled) |
int |
size() |
AsyncProducer acquireProducer(Endpoint endpoint)
void releaseProducer(Endpoint endpoint, AsyncProducer producer)
CompletableFuture<Exchange> asyncSendExchange(Endpoint endpoint, ExchangePattern pattern, Processor processor, Processor resultProcessor, Exchange inExchange, CompletableFuture<Exchange> exchangeFuture)
int size()
int getCapacity()
long getHits()
long getMisses()
long getEvicted()
void resetCacheStatistics()
void purge()
void cleanUp()
boolean isEventNotifierEnabled()
void setEventNotifierEnabled(boolean eventNotifierEnabled)
EndpointUtilizationStatistics getEndpointUtilizationStatistics()
boolean doInAsyncProducer(Endpoint endpoint, Exchange exchange, AsyncCallback callback, ProducerCache.AsyncProducerCallback asyncProducerCallback)
Apache Camel