Code example for ConcurrentLinkedQueue

0
	private ConcurrentLinkedQueue<AndroidAgentBodyProxyWrapper> mRemoteCtxs;
	private CartagoNodeRemote mService;
	private static final int DEF_SERVICE_CONNECTION_TIMEOUT = 4;
	private static final int DEF_WSP_WAIT_TIMEOUT = 2000;	
	public CartagoInfrastructureLayer(){ 
		mRemoteCtxs = new ConcurrentLinkedQueue<AndroidAgentBodyProxyWrapper>();
		mKeepAliveAgent = new KeepRemoteBodyAliveManagerAgent(mRemoteCtxs,500);
		mKeepAliveAgent.start();
	} 
	 
	@Override 
	public OpId execRemoteInterArtifactOp(ICartagoCallback callback,
			long callbackId, AgentId userId, ArtifactId srcId,
			ArtifactId targetId, String address, Op op, long timeout,
			IAlignmentTest test) throws CartagoInfrastructureLayerException,
			CartagoException { 
		 
		try { 
			CartagoCallbackRemote srv = new CartagoCallbackRemote(callback);
			CartagoCallbackProxy proxy = new CartagoCallbackProxy(srv);
			ICartagoNodeRemote env = _getCartagoNodeRemote(address, DEF_SERVICE_CONNECTION_TIMEOUT);