org.glassfish.grizzly.Processor and/or
org.glassfish.grizzly.ProcessorSelector atomically within a bind operation - not something that can normally
be done using the UDPNIOTransport alone.
Example usage:
UDPNIOBindingHandler handler = UDPNIOBindingHandler.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 UDPNIOTransport |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public UDPNIOServerConnection | bind(SocketAddress socketAddress)
Implements org. Binds Transport to the specific SocketAddress. |
| public UDPNIOServerConnection | bind(SocketAddress socketAddress, int backlog)
Implements org. Binds Transport to the specific SocketAddress. |
| private UDPNIOServerConnection | |
| public UDPNIOServerConnection | bindToInherited()
Implements org. Binds the Transport to the channel inherited from the entity that created this Java virtual machine. |
| public static UDPNIOBindingHandler. | |
| public void | unbind(Connection<L> connection)
Implements org. Unbinds bound |
| udpTransport | back to summary |
|---|---|
| private final UDPNIOTransport udpTransport | |
| UDPNIOBindingHandler | back to summary |
|---|---|
| public UDPNIOBindingHandler(UDPNIOTransport udpTransport) | |
| bind | back to summary |
|---|---|
| public UDPNIOServerConnection bind(SocketAddress socketAddress) throws IOException Implements org. Doc from org. Binds Transport to the specific SocketAddress.
| |
| bind | back to summary |
|---|---|
| public UDPNIOServerConnection bind(SocketAddress socketAddress, int backlog) throws IOException Implements org. Doc from org. Binds Transport to the specific SocketAddress.
| |
| bindToChannel | back to summary |
|---|---|
| private UDPNIOServerConnection bindToChannel(final DatagramChannel serverDatagramChannel, final SocketAddress socketAddress) throws IOException | |
| bindToInherited | back to summary |
|---|---|
| public UDPNIOServerConnection 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 UDPNIOBindingHandler. | |
| unbind | back to summary |
|---|---|
| public void unbind(Connection<L> connection) Implements org. Doc from org. Unbinds bound
| |
| Modifier and Type | Field and Description |
|---|---|
| private UDPNIOTransport |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public UDPNIOBindingHandler | |
| protected AbstractBindingHandler | |
| public UDPNIOBindingHandler. |
| transport | back to summary |
|---|---|
| private UDPNIOTransport transport | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public UDPNIOBindingHandler build() Overrides org.
| |
| create | back to summary |
|---|---|
| protected AbstractBindingHandler create() Implements abstract org.
| |
| transport | back to summary |
|---|---|
| public UDPNIOBindingHandler. | |