Class Netty5IOContext
java.lang.Object
org.apache.qpid.protonj2.client.transport.netty5.Netty5IOContext
- All Implemented Interfaces:
IOContext
Builder of Transport instances that will validate the build options and produce a
correctly configured transport based on the options set.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionNetty5IOContext(TransportOptions options, SslOptions ssl, String ioThreadName) -
Method Summary
Modifier and TypeMethodDescriptionvoidshutdown()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.
-
Constructor Details
-
Netty5IOContext
-
-
Method Details
-
shutdown
public void shutdown()Description copied from interface:IOContextShutdown 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. -
shutdownAsync
public void 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.- Specified by:
shutdownAsyncin interfaceIOContext
-
ioScheduler
- Specified by:
ioSchedulerin interfaceIOContext- Returns:
- the single threaded IO work scheduler for this
IOContext
-
newTransport
- Specified by:
newTransportin interfaceIOContext- Returns:
- a new
Transportinstance that is tied to thisIOContext
-