Code example for SelectionKey

Methods: interestOps

0
         
        if (mPaused)
            return; 
        mPaused = true;
        try { 
            mKey.interestOps(~SelectionKey.OP_READ & mKey.interestOps());
        } 
        catch (Exception ex) {
        } 
    } 
     
    private void spitPending() { 
        if (pending != null) {
            Util.emitAllData(this, pending);
            if (pending.remaining() == 0) {
                pending = null;
            } 
        } 
    } 
     
    @Override