org.glassfish.grizzly.Processor and/or
org.glassfish.grizzly.ProcessorSelector atomically within a bind operation - not something that can normally
be done using the TCPNIOTransport alone.
Example usage:
TCPNIOBindingHandler handler = TCPNIOBindingHandler.builder(transport).setProcessor(custom).build(); handler.bind(socketAddress);
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final TCPNIOTransport |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public TCPNIOServerConnection | bind(SocketAddress socketAddress)
Implements org. Binds Transport to the specific SocketAddress. |
| public TCPNIOServerConnection | bind(SocketAddress socketAddress, int backlog)
Implements org. Binds Transport to the specific SocketAddress. |
| private TCPNIOServerConnection | bindToChannelAndAddress(final ServerSocketChannel serverSocketChannel, final SocketAddress socketAddress, final int backlog)
|
| public TCPNIOServerConnection | bindToInherited()
Implements org. Binds the Transport to the channel inherited from the entity that created this Java virtual machine. |
| public static TCPNIOBindingHandler. | |
| public void | unbind(Connection<L> connection)
Implements org. Unbinds bound |
| tcpTransport | back to summary |
|---|---|
| private final TCPNIOTransport tcpTransport | |
| TCPNIOBindingHandler | back to summary |
|---|---|
| pack-priv TCPNIOBindingHandler(final TCPNIOTransport tcpTransport) | |
| bind | back to summary |
|---|---|
| public TCPNIOServerConnection bind(SocketAddress socketAddress) throws IOException Implements org. Doc from org. Binds Transport to the specific SocketAddress.
| |
| bind | back to summary |
|---|---|
| public TCPNIOServerConnection bind(SocketAddress socketAddress, int backlog) throws IOException Implements org. Doc from org. Binds Transport to the specific SocketAddress.
| |
| bindToChannelAndAddress | back to summary |
|---|---|
| private TCPNIOServerConnection bindToChannelAndAddress(final ServerSocketChannel serverSocketChannel, final SocketAddress socketAddress, final int backlog) throws IOException | |
| bindToInherited | back to summary |
|---|---|
| public TCPNIOServerConnection bindToInherited() throws IOException Implements org. Doc from org. Binds the Transport to the channel inherited from the entity that created this Java virtual machine.
| |
| builder | back to summary |
|---|---|
| public static TCPNIOBindingHandler. | |
| unbind | back to summary |
|---|---|
| public void unbind(Connection<L> connection) Implements org. Doc from org. Unbinds bound
| |
| Modifier and Type | Field and Description |
|---|---|
| private TCPNIOTransport |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TCPNIOBindingHandler | |
| protected AbstractBindingHandler | |
| public TCPNIOBindingHandler. |
| transport | back to summary |
|---|---|
| private TCPNIOTransport transport | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public TCPNIOBindingHandler build() Overrides org.
| |
| create | back to summary |
|---|---|
| protected AbstractBindingHandler create() Implements abstract org.
| |
| transport | back to summary |
|---|---|
| public TCPNIOBindingHandler. | |