Class Netty4IOContext
java.lang.Object
org.apache.qpid.protonj2.client.transport.netty4.Netty4IOContext
- 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
-
Constructor Summary
ConstructorDescriptionNetty4IOContext
(TransportOptions options, SslOptions ssl, String ioThreadName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
shutdown()
Shutdown the event loop synchronously with a grace period for work that might be in-bound at the time of termination.void
Shutdown the event loop asynchronously with a grace period for work that might be in-bound at the time of termination.
-
Constructor Details
-
Netty4IOContext
-
-
Method Details
-
shutdown
public void shutdown()Description copied from interface:IOContext
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. -
shutdownAsync
public void shutdownAsync()Description copied from interface:IOContext
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:
shutdownAsync
in interfaceIOContext
-
ioScheduler
- Specified by:
ioScheduler
in interfaceIOContext
- Returns:
- the single threaded IO work scheduler for this
IOContext
-
newTransport
- Specified by:
newTransport
in interfaceIOContext
- Returns:
- a new
Transport
instance that is tied to thisIOContext
-