lib/src/kbasesearchengine/events/ObjectEventQueue.java
public Optional<StoredStatusEvent> moveToReady() {
        // if a object level event is ready for processing or processing, do nothing.
        // the queue is blocked.
        if (ready != null || processing != null) {
            return Optional.absent();
        }
        final StoredStatusEvent next = queue.peek();
        if (next != null && !isBlockActive(next)) {
            ready = next;
            queue.remove();
        }
        return Optional.fromNullable(ready);
    }
/** Move an event into the ready state if possible, or absent if not.
     * Usually called after loading ({@link #load(StoredStatusEvent)}) one or more events.
     * @return the event that has been moved into the ready state.
     */
Move an event into the ready state if possible, or absent if not.
Usually called after loading ( #load(StoredStatusEvent)) one or more events.
@return the event that has been moved into the ready state.
Move an event into the ready state if possible or absent if not . Usually called after loading ( #load ( StoredStatusEvent )) one or more events . @return the event that has been moved into the ready state .
public Optional<StoredStatusEvent> moveToReady() {
        if (ready != null || processing != null) {
            return Optional.absent();
        }
        final StoredStatusEvent next = queue.peek();
        if (next != null && !isBlockActive(next)) {
            ready = next;
            queue.remove();
        }
        return Optional.fromNullable(ready);
    }
public Optional < StoredStatusEvent > moveToReady ( ) { if ( ready != null || processing != null ) { return Optional . absent ( ) ; } final StoredStatusEvent next = queue . peek ( ) ; if ( next != null && ! isBlockActive ( next ) ) { ready = next ; queue . remove ( ) ; } return Optional . fromNullable ( ready ) ; }
Move an event into the ready state if possible, or absent if not.
Move an event into the ready state if possible or absent if not .
// if a object level event is ready for processing or processing, do nothing. // the queue is blocked.