2 * Copyright (c) 2020 Lumina Networks, Inc. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.nb.rfc8040.streams;
11 * Interface for session handler that is responsible for sending of data over established session.
13 public interface StreamSessionHandler {
15 * Interface for sending String message through one of implementation.
17 * @param data Message data to be send.
19 void sendDataMessage(String data);
22 * Called when the stream has reached its end. The handler should close all underlying resources.