Named communication (end)-points inside of kronos
{:height="310pt" width="325pt"}
- DummyReceiveEndpoint
- ConnectionState
- Endpoint
- Parameters
- displayName
- isDefault
- isDummy
- toStringAttributes
- connectionNamesWithStates
- isIn
- isOut
- direction
- jsonAttributes
- hasInterceptors
- connectable
- hasConnections
- isConnected
- openConnection
- closeConnection
- openConnections
- closeConnections
- connections
- addConnection
- removeConnection
- getConnectionState
- setConnectionState
- didConnect
- isEndpoint
- instanciateInterceptors
- MultiConnectionEndpoint
- connections
- MultiSendEndpoint
- ReceivableEndpoint
- ReceiveEndpointDefault
- ReceiveEndpointSelfConnectedDefault
- ReceiveEndpoint
- SendEndpointDefault
- SendEndpoint
- SendReceiveEndpoint
Extends Endpoint
Dummy endpoints are used during construction of the endpoint mesh.
dummy does nothing by intention.
Returns boolean true
Returns boolean true
Indicate whatever we are a dummy endpoint. Dummy endpoints are used duiring construction of the endpoint mesh.
Returns boolean true
Type: Object
Connection endpoint.
Name as presented for humans.
Returns string
Indicate whatever we are a default endpoint. Default means buildin.
Returns boolean false
Indicate whatever we are a dummy endpoint. Dummy endpoints are used duiring construction of the endpoint mesh.
Returns boolean false
Mapping of properties used in toString.
Returns Object
options
Object (optional, default{includeRuntimeInfo:true}
)
Returns boolean false
Returns boolean false
Deliver data flow direction.
Returns (string | undefined) delivers data flow direction 'in', 'out', 'inout' or undefined
Additional attributes to present in json output.
Returns boolean true if there is at least one interceptor assigned
Can we form a connection to the other side. in to out and out to in.
other
Endpoint
Returns boolean true if we can be connected to the other endpoint
Returns boolean true if there is at least one connection
Are we connected to a endpoint.
other
Endpoint to check for the connection
Returns boolean true if there is a connection to the other endpoint
Actually start with the communication.
Actually stop the communication.
Opens all connections.
Closes all connections.
Returns Iterable<Endpoint>
connection
Endpointbackpointer
boolean? true if this is the call form back call from the other side
Actually stop the communication.
Deliver state for a given connection.
other
Endpoint
Returns ConnectionState
Set state for a given connection.
other
Endpointstate
ConnectionState
Check for Endpoint.
object
any to be checked
Returns boolean true if object is an Endpoint
Instanciate interceptors from its definitions.
Returns Array<Interceptor>
Extends ReceivableEndpoint
Multiple connection endpoint. Can hold several connections.
name
owner
options
Deliver connection state.
other
Endpoint
Returns any our state for the connection to other
Set connection state.
other
Endpointstate
any for the connection to other
Actually stop the communication.
Check connectivity.
other
Endpoint
Returns boolean true if we are connected with other
All connections
Extends MultiConnectionEndpoint
Multiple Sending Endpoint. Can hold several connections. Back connections to any further endpoints will not be established
We are always out
Returns boolean always true
Extends Endpoint
Returns boolean true is receive function is present
Get the receive function.
Returns Function
Set the receive function.
receive
Function
Extends ReceiveEndpoint
Receive Endpoint acting as a default endpoints.
We are a default endpoint
Returns boolean always true
Extends ReceiveEndpointDefault
Receiving endpoint wich can also send to itself.
Actually stop the communication.
Extends MultiConnectionEndpoint
Receiving Endpoint. Can receive from several endpoints. By default a dummy rejecting receiver is assigned
We are always in
Returns boolean always true
Extends SendEndpoint
Send Endpoint acting as a default endpoints.
We are a default endpoint.
Returns boolean always true
Extends ReceivableEndpoint
Sending Endpoint. Can only hold one connection. Back connections to any further endpoints will not be established
We are always out
Returns boolean always true
Add a connection.
Actually stop the communication.
Extends SendEndpoint
bi directional endpint
Always receiving.
Returns boolean true
With npm do:
npm install kronos-endpoint
BSD-2-Clause