Code example for BlockingQueue

Methods: size

0
	public Bundle getMachineStatus() {
		return machine.getStatusBundle();
	} 
 
	public int queueSize() { 
		return queue.size();
	} 
	 
	protected void updateInfo(String line, Bundle b) {
		String json = b.getString("json");
		Intent i;
 
		ioLog.write("< ", line + "\n");
		if (json != null) {
			if (json.equals("sr")) {
				i = new Intent(STATUS);
				i.putExtras(b);
				sendBroadcast(i, null);
			} 
			if (json.equals("error")) {
				ioLog.write("* ", "Parse error on JSON line\n");