| /****************************************************************************** |
| * Copyright (c) 2016 TypeFox and others. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0, |
| * or the Eclipse Distribution License v. 1.0 which is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| ******************************************************************************/ |
| package org.eclipse.lsp4j.jsonrpc; |
| |
| import java.util.concurrent.CompletableFuture; |
| |
| /** |
| * An endpoint is a generic interface that accepts jsonrpc requests and notifications. |
| */ |
| public interface Endpoint { |
| |
| CompletableFuture<?> request(String method, Object parameter); |
| |
| void notify(String method, Object parameter); |
| |
| } |