@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }
@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }
@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }
@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }
@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }
@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }
@Override protected SelectionKey register(AbstractSelectableChannel channel, int operations, Object attachment) { if (!provider().equals(channel.provider())) { throw new IllegalSelectorException(); } synchronized (this) { synchronized (unmodifiableKeys) { SelectionKeyImpl selectionKey = new SelectionKeyImpl(channel, operations, attachment, this); mutableKeys.add(selectionKey); ensurePollFdsCapacity(); return selectionKey; } } }