Package org.apache.hc.core5.http.nio
Interface ResourceHolder
-
- All Known Subinterfaces:
AsyncClientExchangeHandler,AsyncDataConsumer,AsyncDataExchangeHandler,AsyncDataProducer,AsyncEntityConsumer<T>,AsyncEntityProducer,AsyncPushConsumer,AsyncPushProducer,AsyncRequestConsumer<T>,AsyncRequestProducer,AsyncResponseConsumer<T>,AsyncResponseProducer,AsyncServerExchangeHandler,H2StreamHandler
- All Known Implementing Classes:
AbstractAsyncPushHandler,AbstractAsyncRequesterConsumer,AbstractAsyncResponseConsumer,AbstractBinAsyncEntityConsumer,AbstractBinAsyncEntityProducer,AbstractBinDataConsumer,AbstractCharAsyncEntityConsumer,AbstractCharAsyncEntityProducer,AbstractCharDataConsumer,AbstractClassicEntityConsumer,AbstractClassicEntityProducer,AbstractClassicServerExchangeHandler,AbstractServerExchangeHandler,AsyncEntityProducerWrapper,BasicAsyncEntityConsumer,BasicAsyncEntityProducer,BasicAsyncServerExpectationDecorator,BasicClientExchangeHandler,BasicPushProducer,BasicRequestConsumer,BasicRequestProducer,BasicResponseConsumer,BasicResponseProducer,BasicServerExchangeHandler,BenchmarkWorker,ClientH2StreamHandler,ClientHttp1StreamHandler,ClientPushH2StreamHandler,DigestingEntityConsumer,DigestingEntityProducer,DiscardingEntityConsumer,FileEntityProducer,ImmediateResponseExchangeHandler,NoopAsyncPushHandler,NoopEntityConsumer,NoopH2StreamHandler,PathEntityProducer,ReactiveDataConsumer,ReactiveDataProducer,ReactiveEntityProducer,ReactiveResponseConsumer,ReactiveServerExchangeHandler,ServerH2StreamHandler,ServerHttp1StreamHandler,ServerPushH2StreamHandler,StringAsyncEntityConsumer,StringAsyncEntityProducer
@Contract(threading=SAFE) public interface ResourceHolder
Abstract resource holder.Implementations are expected to ensure that
releaseResources()methods is idempotent and is safe to invoke multiple times.Implementations are expected to be thread-safe.
- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreleaseResources()
-