public interface TransportProcessor
TransportProcessor
used to process the
provided transport in a higher layer. It is the responsibility of
the delegate to handle protocols and message processing. In the
case of HTTP this will process requests for a container. The
transport provided can be either a direct transport or provide
some form of secure encoding such as SSL.Transport
Modifier and Type | Method and Description |
---|---|
void |
process(Transport transport)
This is used to process a
Transport instance in
a higher layer that can handle a protocol. |
void |
stop()
This method is used to stop the
TransportProcessor
such that it will accept no more pipelines. |
void process(Transport transport) throws IOException
Transport
instance in
a higher layer that can handle a protocol. A transport can be
a direct transport or a secure transport providing SSL. At this
point any SSL handshake will have already completed.
Typical usage of this method is to accept multiple transport objects, each representing a unique TCP channel to the client, and process requests from those transports concurrently.
transport
- the transport to process requests fromIOException
void stop() throws IOException
TransportProcessor
such that it will accept no more pipelines. Stopping the connector
ensures that all resources occupied will be released. This is
required so that all threads are stopped and released.
Typically this method is called once all connections to the server have been stopped. As a final act of shutting down the entire server all threads must be stopped, this allows collection of unused memory and the closing of file and socket resources.
IOException
Copyright © 2021. All rights reserved.