Beispiel #1
0
        public static SelectorProvider provider()
        {
            if (_provider == null)
            {
                _provider = new SelectorProvider();
            }

            return(_provider);
        }
Beispiel #2
0
        private HashSet <SelectionKey> publicSelectedKeys;            // Removal allowed, but not addition

        protected SelectorImpl(SelectorProvider provider)
            : base(provider)
        {
            keys         = new HashSet <SelectionKey>();
            selectedKeys = new HashSet <SelectionKey>();
//			if (Util.atBugLevel("1.4"))
            {
                publicKeys         = keys;
                publicSelectedKeys = selectedKeys;
            }
//          else
//          {
//              publicKeys = Collections.unmodifiableSet(keys);
//              publicSelectedKeys = Util.ungrowableSet(selectedKeys);
//          }
        }
Beispiel #3
0
 protected SocketChannel(SelectorProvider provider) : base(provider)
 {
 }
Beispiel #4
0
 protected SocketChannel(SelectorProvider provider, TcpClient socket) : base(provider, socket)
 {
 }
Beispiel #5
0
 protected AbstractSelectableChannel(SelectorProvider _provider, TcpClient socket) : base(socket)
 {
     this._provider = _provider;
 }
Beispiel #6
0
 protected AbstractSelectableChannel(SelectorProvider _provider) : base()
 {
     this._provider = _provider;
 }
Beispiel #7
0
 protected AbstractSelector(SelectorProvider provider)
 {
     this.provider = provider;
 }
Beispiel #8
0
 public SocketChannelImpl(SelectorProvider selectorProvider) : base(selectorProvider)
 {
 }
Beispiel #9
0
 public SocketChannelImpl(SelectorProvider selectorProvider, TcpClient socket) : base(selectorProvider, socket)
 {
 }
Beispiel #10
0
 public WindowsSelectorImpl(SelectorProvider sp) : base(sp)
 {
 }