/*
 * Copyright 2014-2015 JKOOL, LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jkoolcloud.rest.api.service;

import javax.ws.rs.core.Response;


public class JKQueryAsync extends JKQuery {
	
	WebsocketClient socket;
	
	/**
	 * Call query in async mode using a callback
	 * 
	 * @param query JKQL query
	 * @return callback callback class
	 * @throws JKApiException
	 */
	public String call(String query, JKResultCallback callback) throws JKApiException {
		return null;
	}
	
	public Response cancel(String subid) throws JKApiException {
		return super.call("unsubscribe " + subid);
	}
}

@@ -1001,16 +1001,206 @@
 l;%0A%09%7D%0A%09%0A
+%09/**%0A%09 * Cancel a live subscription%0A%09 * %0A%09 * @param subid subscription id returned by %7B@#call(String, JKResultCallback)%7D%0A%09 * @return un-subscription response%0A%09 * @throws JKApiException%0A%09 */%0A
 %09public 

update java doc