Interface IOContext
- All Known Implementing Classes:
- Netty4IOContext,- Netty5IOContext
public interface IOContext
An I/O context used to abstract the implementation of the IO layer in use.
- 
Method SummaryModifier and TypeMethodDescriptionstatic IOContextcreate(TransportOptions options, SslOptions sslOptions, String ioThreadName) Create an IOContext from the available options.voidshutdown()Shutdown the event loop synchronously with a grace period for work that might be in-bound at the time of termination.voidShutdown the event loop asynchronously with a grace period for work that might be in-bound at the time of termination.
- 
Method Details- 
shutdownvoid shutdown()Shutdown the event loop synchronously with a grace period for work that might be in-bound at the time of termination. This is not safe to call from inside the event loop as it blocks until the shutdown has completed.
- 
shutdownAsyncvoid shutdownAsync()Shutdown the event loop asynchronously with a grace period for work that might be in-bound at the time of termination. This is safe to call from inside the event loop where the standard blocking shutdown API is not.
- 
ioSchedulerScheduler ioScheduler()- Returns:
- the single threaded IO work scheduler for this IOContext
 
- 
newTransportTransport newTransport()
- 
createCreate an IOContext from the available options.- Parameters:
- options- The- TransportOptionsthat configure the IO Transport the context creates.
- sslOptions- The- SslOptionsthat configure the SSL layer of the IO Transport the context creates.
- ioThreadName- The name to given the single IO Thread the context must provide.
- Returns:
- a new IOContextfrom available options.
 
 
-