Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 2.24 KB

README.md

File metadata and controls

46 lines (26 loc) · 2.24 KB
shortname name status editor
2/API
Waltz-Controls Magix API
raw
Igor Khokhriakov ([email protected])

Preamble

Copyright (c) 2020 Waltz-Controls.

This Specification is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This Specification 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

This Specification is a free and open standard and is governed by the Digital Standards Organization's Consensus-Oriented Specification System.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Waltz-Controls Message Exchange Specification

The core feature of Waltz-Controls is ability to exchange messages beetween a number of upstream controls systems, as well as 3rd party components and GUIs in general refered as endpoints. Therefore the main idea to keep in mind when designing this message specification is the following: when a field is related to a message routing or processing it goes to the upper level, otherwise i.e. when a field is an endpoint specific it goes into payload.

Goals

Describe standard API for Magix component

Magix client API [raw]

Magix component of Waltz-Controls MUST define the following methods

interface Magix {
   void broadcast(Message msg, Channel channel) throws IOException;

   Flowable<Message> subscribe(Channel channel, BackpressureStrategy strategy);
}

Magix client implementation

Magix client implementation MUST provide transparent reconnection policy

Magix client implementation reconnection policy MAY be used to force initial connection