8ced1d19be2e451237d71177b9742574ab9b1f8e
[netconf.git] / restconf / restconf-nb-rfc8040 / src / main / java / org / opendaylight / restconf / nb / rfc8040 / streams / SessionHandlerInterface.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 SessionHandlerInterface {
14
15     /**
16      * Identification of created session.
17      */
18     boolean isConnected();
19
20     /**
21      * Interface for sending String message through one of implementation.
22      *
23      * @param data Message data to be send.
24      */
25     void sendDataMessage(String data);
26
27 }