Code example for BlockingQueue

Methods: add

0
		@Override 
		public void onBar(int current) {
			assertSame(Looper.getMainLooper().getThread(),
					Thread.currentThread());
 
			queue.add("bar:" + current);
		} 
 
		@Override 
		public void onBaz() { 
			assertSame(Looper.getMainLooper().getThread(),
					Thread.currentThread());
 
			queue.add("baz");
		} 
	} 
}