Code example for BlockingQueue

Methods: clear

0
            } 
        } 
    } 
 
    public void clear() { 
        queue.clear();
    } 
 
    @Override 
    public void run() { 
        while (true) { 
            try { 
                Task task = queue.take();
                task.execute();
            } catch (Throwable x) {
                Log.e(TAG, "Unexpected exception in ImageLoader.", x);
            } 
        } 
    } 
 
    private Bitmap createReflection(Bitmap originalImage) {