Code example for LinkedBlockingQueue

Methods: put

            mEventLoader = eventLoader;
        public void shutdown() { 
            try { 
                mQueue.put(new ShutdownRequest());
            } catch (InterruptedException ex) {
                // The put() method fails with InterruptedException if the 
                // queue is full. This should never happen because the queue 
                // has no limit. 
                Log.e("Cal", "LoaderThread.shutdown() interrupted!");
        public void run() { 
            while (true) { 
                try { 
                    // Wait for the next request 
Connect your IDE to all the code out there  Get Codota for Java