Code example for LinkedBlockingQueue

Methods: put

0
		monitorThread.setDaemon(true);
		monitorThread.start();
	} 
	 
	private void loadPleoBehaviorSimple() throws InterruptedException { 
		LinkedBlockingQueue<String> commandQueue = new LinkedBlockingQueue<String>();
 
		commandQueue.put("property set 20484 0");
 
		Runnable monitorRunnable = new PleoMonitorRunnable(this,_pleoBluetoothSocket,commandQueue);
		Thread monitorThread = new Thread(monitorRunnable,"monitorLoadPleoBehaviourThread");
		monitorThread.setDaemon(true);
		monitorThread.start();
	} 
 
	private class BluetoothDongleNotBondedException extends Exception {
		private static final long serialVersionUID = -2481455177765725098L;
 
		BluetoothDongleNotBondedException(String s) {
			super(s);
		}