private static final Pattern VALID_SERVICE_PATTERN = Pattern.compile("[-.:a-zA-Z_0-9]+");
private final String name;
private final ConnectionProviderContext connectionProviderContext;
private final CloseHandler<Object> resourceCloseHandler = (closed, exception) -> closeTick1(closed);
private final CloseHandler<Connection> connectionCloseHandler = (closed, exception) -> connections.remove(closed);
<BUG>private final boolean ourWorker;
private EndpointImpl(final XnioWorker xnioWorker, final boolean ourWorker, final String name) throws NotOpenException {
</BUG>
super(xnioWorker, true);
worker = xnioWorker;

private static final Pattern VALID_SERVICE_PATTERN = Pattern.compile("[-.:a-zA-Z_0-9]+");
private final String name;
private final ConnectionProviderContext connectionProviderContext;
private final CloseHandler<Object> resourceCloseHandler = (closed, exception) -> closeTick1(closed);
private final CloseHandler<Connection> connectionCloseHandler = (closed, exception) -> connections.remove(closed);
private final boolean ourWorker;
private final SocketAddress defaultBindAddress;
private EndpointImpl(final XnioWorker xnioWorker, final boolean ourWorker, final String name, final SocketAddress defaultBindAddress) throws NotOpenException {
super(xnioWorker, true);
worker = xnioWorker;
