public class ServiceUnavailableAsyncDecorator extends Object implements org.apache.hc.core5.http.nio.AsyncServerExchangeHandler
| Constructor and Description |
|---|
ServiceUnavailableAsyncDecorator(org.apache.hc.core5.http.nio.AsyncServerExchangeHandler exchangeHandler,
org.apache.hc.core5.function.Resolver<org.apache.hc.core5.http.HttpRequest,org.apache.hc.core5.util.TimeValue> serviceAvailabilityResolver) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
consume(ByteBuffer src) |
void |
failed(Exception cause) |
void |
handleRequest(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.nio.ResponseChannel responseChannel,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
produce(org.apache.hc.core5.http.nio.DataStreamChannel channel) |
void |
releaseResources() |
void |
streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) |
void |
updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) |
public ServiceUnavailableAsyncDecorator(org.apache.hc.core5.http.nio.AsyncServerExchangeHandler exchangeHandler,
org.apache.hc.core5.function.Resolver<org.apache.hc.core5.http.HttpRequest,org.apache.hc.core5.util.TimeValue> serviceAvailabilityResolver)
public void handleRequest(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entityDetails,
org.apache.hc.core5.http.nio.ResponseChannel responseChannel,
org.apache.hc.core5.http.protocol.HttpContext context)
throws org.apache.hc.core5.http.HttpException,
IOException
handleRequest in interface org.apache.hc.core5.http.nio.AsyncServerExchangeHandlerorg.apache.hc.core5.http.HttpExceptionIOExceptionpublic final void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel)
throws IOException
updateCapacity in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic final void consume(ByteBuffer src) throws IOException
consume in interface org.apache.hc.core5.http.nio.AsyncDataConsumerIOExceptionpublic final void streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) throws org.apache.hc.core5.http.HttpException, IOException
streamEnd in interface org.apache.hc.core5.http.nio.AsyncDataConsumerorg.apache.hc.core5.http.HttpExceptionIOExceptionpublic int available()
available in interface org.apache.hc.core5.http.nio.AsyncDataProducerpublic void produce(org.apache.hc.core5.http.nio.DataStreamChannel channel)
throws IOException
produce in interface org.apache.hc.core5.http.nio.AsyncDataProducerIOExceptionpublic void failed(Exception cause)
failed in interface org.apache.hc.core5.http.nio.AsyncDataExchangeHandlerpublic void releaseResources()
releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolderCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.