void function ( int arg0 ) { synchronized ( myQueue ) { while ( myQueue . size ( ) > arg0 ) { myQueue . pollLast ( ) ; } } }
removes several last tasks in the queue , leaving only remaining amount of them , counted from the head of the queue . concode_field_sep boolean myStarted concode_elem_sep ThreadToUse myThreadToUse concode_elem_sep Runnable myContinuationContext concode_elem_sep Logger LOG concode_elem_sep boolean isProcessing concode_elem_sep Object myDelegate concode_elem_sep PairConsumer<T,Runnable> myProcessor concode_elem_sep Deque<T> myQueue concode_elem_sep Condition<?> myDeathCondition concode_elem_sep Map<MyOverrideEquals,ModalityState> myModalityState concode_field_sep void add concode_elem_sep void add concode_elem_sep void doAdd concode_elem_sep QueueProcessor<Runnable> createRunnableQueueProcessor concode_elem_sep QueueProcessor<Runnable> createRunnableQueueProcessor concode_elem_sep void start concode_elem_sep void clear concode_elem_sep boolean isEmpty concode_elem_sep void run concode_elem_sep void consume concode_elem_sep boolean hasPendingItemsToProcess concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep boolean startProcessing concode_elem_sep void runSafely concode_elem_sep void waitFor concode_elem_sep PairConsumer<T,Runnable> wrappingProcessor concode_elem_sep void addFirst