Object retrieveAndDispose ( int sequence ) { int index = toIndex ( sequence ) ; checkSequence ( index , sequence ) ; try { return ringItems [ index ] ; } finally { ringItems [ index ] = null ; isTask [ index ] = false ; head -- ; } }
Gets the response and disposes the sequence