com.kurento.kmf.jsonrpcconnector.Transaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kmf-jsonrpcconnector-client Show documentation
Show all versions of kmf-jsonrpcconnector-client Show documentation
JSON-RPC Protocol with transports based on http and websocket
/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-2.1.html
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*/
package com.kurento.kmf.jsonrpcconnector;
import java.io.IOException;
/**
* A transaction represents a conversation between a client and the server.
*
* @author Ivan Gracia ([email protected]) since 1.0.0
*
*/
public interface Transaction {
void sendResponse(Object result) throws IOException;
void sendError(int code, String message, String data) throws IOException;
void sendError(Throwable e) throws IOException;
Session getSession();
void startAsync();
boolean isNotification();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy