@Override public AsyncFuture<ProtocolConnection> bind( Logger log, Protocol protocol, ProtocolServer server, RetryPolicy policy ) { if (protocol.getType() == ProtocolType.UDP) { return bindUDP(log, protocol, server, policy); } if (protocol.getType() == ProtocolType.TCP) { return bindTCP(log, protocol, server, policy); } throw new IllegalArgumentException("Unsupported protocol: " + protocol); }