Turn streams.Configuration into a record
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / streams / StreamSessionHandler.java
1 /*
2  * Copyright (c) 2020 Lumina Networks, Inc. All rights reserved.
3  *
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
7  */
8 package org.opendaylight.restconf.nb.rfc8040.streams;
9
10 /**
11  * Interface for session handler that is responsible for sending of data over established session.
12  */
13 public interface StreamSessionHandler {
14     /**
15      * Identification of created session.
16      */
17     boolean isConnected();
18
19     /**
20      * Interface for sending String message through one of implementation.
21      *
22      * @param data Message data to be send.
23      */
24     void sendDataMessage(String data);
25 }