Package io.servicetalk.concurrent.api
Interface ListenableAsyncCloseable
-
- All Superinterfaces:
AsyncCloseable
- All Known Subinterfaces:
ClientGroup<Key,Client>
,ConnectionContext
,ConnectionFactory<ResolvedAddress,C>
,EventLoopAwareNettyIoExecutor
,Executor
,FilterableGrpcClient
,FilterableReservedStreamingHttpConnection
,FilterableStreamingHttpClient
,FilterableStreamingHttpConnection
,FilterableStreamingHttpLoadBalancedConnection
,GrpcClient<BlockingClient>
,GrpcClientCallFactory
,GrpcServiceContext
,HttpClient
,HttpConnection
,HttpConnectionContext
,HttpRequester
,IoExecutor
,LoadBalancedAddress<C>
,LoadBalancedConnection
,LoadBalancer<C>
,NettyConnection<Read,Write>
,NettyConnectionContext
,NettyIoExecutor
,PartitionMap<T>
,ReservedHttpConnection
,ReservedStreamingHttpConnection
,ServerContext
,ServiceDiscoverer<UnresolvedAddress,ResolvedAddress,E>
,StreamingHttpClient
,StreamingHttpConnection
,StreamingHttpRequester
- All Known Implementing Classes:
ChannelSet
,DefaultNettyConnection
,DefaultPartitionedClientGroup
,DelegatingConnectionContext
,DelegatingConnectionFactory
,DelegatingExecutor
,DelegatingHttpConnectionContext
,DelegatingHttpServiceContext
,HttpServiceContext
,NettyChannelListenableAsyncCloseable
,NettyServerContext
,OffloaderAwareExecutor
,PowerSetPartitionMap
,ReservedStreamingHttpConnectionFilter
,RoundRobinLoadBalancer
,StreamingHttpClientFilter
,StreamingHttpConnectionFilter
,TestExecutor
,TestHttpServiceContext
public interface ListenableAsyncCloseable extends AsyncCloseable
Provides a way to subscribe whenAsyncCloseable.closeAsync()
is completed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Completable
onClose()
Returns aCompletable
that is notified once theListenableAsyncCloseable
was closed.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
-
-
-
Method Detail
-
onClose
Completable onClose()
Returns aCompletable
that is notified once theListenableAsyncCloseable
was closed.- Returns:
- the
Completable
that is notified on close.
-
-