Code example for SelectionKey

Methods: cancel

0
        closeInternal(); 
        reportClose(null); 
    } 
 
    public void closeInternal() { 
        mKey.cancel();
        try { 
            mChannel.close();
        } 
        catch (IOException e) {
        } 
    } 
 
    WritableCallback mWriteableHandler;
    @Override 
    public void setWriteableCallback(WritableCallback handler) {
        mWriteableHandler = handler;        
    } 
 
    DataCallback mDataHandler;
    @Override