Java 8 ReadPendingException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 ReadPendingException class.

This code example shows how to use the following methods:
            throw new IllegalArgumentException();
 
        if (!_interested.compareAndSet(null, callback))
        { 
            LOG.warn("Read pending for {} prevented {}", _interested, callback);
            throw new ReadPendingException();
        } 
        try 
        { 
            if (needsFill()) 
                fillable(); 
        } 
        catch (IOException e)
        { 
            onFail(e);
        } 
    } 
 
    /** 
     * Call to signal that a read is now possible. 
5
CodeRank
This code example shows how to use the following methods:
        else 
        { 
            LOG.warn("Read pending for {} prevented {}", _interested, callback);
            if (LOG.isDebugEnabled())
                LOG.warn("callback set at ",_lastSet);
            throw new ReadPendingException();
        } 
        try 
        { 
            if (LOG.isDebugEnabled())
                LOG.debug("{} register {}",this,callback);
            needsFillInterest(); 
        } 
        catch (Throwable e)
        { 
            onFail(e);
        } 
    } 
 
    /** 
4
CodeRank
See Code Examples for Java 8 ReadPendingException Methods: