src/main/java/org/michailov/async/io/RingBuffer.java
public int advanceWritePosition(int delta) {
        int availableDelta = getAvailableDeltaToAdvance(delta, getAvailableToWrite());
        _virtualWritePosition += availableDelta;
        return availableDelta;
    }
/**
     * This method must be called to indicate a successful write operation.
     * If multiple items are written one by one, it is not necessary to advance the write position
     * after each item. That could be done once for all written items.
     * <p> 
     * An attempt to advance the write position beyond the value returned by {@link #getAvailableToWrite}
     * limits the attempt to the value of {@link #getAvailableToWrite}.
     * That is not an exceptional case.
     * 
     * @param   delta   The count of virtual notches by which to increment the virtual write position. 
     * @return          The minimum of the requested <i>delta</i> and the value of {@link #getAvailableToWrite}. 
     */
This method must be called to indicate a successful write operation.
If multiple items are written one by one, it is not necessary to advance the write position
after each item. That could be done once for all written items.

An attempt to advance the write position beyond the value returned by  #getAvailableToWrite
limits the attempt to the value of  #getAvailableToWrite.
That is not an exceptional case.

@param   delta   The count of virtual notches by which to increment the virtual write position.
@return          The minimum of the requested delta and the value of  #getAvailableToWrite.
This method must be called to indicate a successful write operation . If multiple items are written one by one it is not necessary to advance the write position after each item . That could be done once for all written items . An attempt to advance the write position beyond the value returned by #getAvailableToWrite limits the attempt to the value of #getAvailableToWrite . That is not an exceptional case . @param delta The count of virtual notches by which to increment the virtual write position . @return The minimum of the requested delta and the value of #getAvailableToWrite .
public int advanceWritePosition(int delta) {
        int availableDelta = getAvailableDeltaToAdvance(delta, getAvailableToWrite());
        _virtualWritePosition += availableDelta;
        return availableDelta;
    }
public int advanceWritePosition ( int delta ) { int availableDelta = getAvailableDeltaToAdvance ( delta , getAvailableToWrite ( ) ) ; _virtualWritePosition += availableDelta ; return availableDelta ; }
This method must be called to indicate a successful write operation.
This method must be called to indicate a successful write operation .