This repository has been archived by the owner on Jul 19, 2022. It is now read-only.
8. Generic objects
Proesmans Bert edited this page Feb 26, 2017
·
2 revisions
- NAck :- enum Reason
kettle:types/ack
is a generic object that is sent to acknowledge a received object.
- Acknowledged object: The string representation of the Types IRI.
{
"type": "kettle:types/ack",
"ack":
{
/*REQ*/ "acknowledged_object" := "kettle:types/[type_name]",
}
}
kettle:types/nack
is a generic object that is sent to notify the receiver that
the received object was discarded.
- NotAcknowledged object: The string representation of the Types IRI; and
- Reason: Gives a set reason for why the object wasn't acknowledged. Possible values are explaing by the enum Reason; and
- Message: An optionall accompanying message giving more information about the property
Reason
.
{
"type": "kettle:types/nack",
"nack":
{
/*REQ*/ "not_acknowledged_object" := "kettle:types/[type_name]",
/*REQ*/ "reason" := Reason:integer,
/*OPT*/ "message" := string,
}
}
Reason
explains why something happened.
The values are written in HEX format and the underlying type is int32.
Invalid/Undefined.
Shutdown. The sender was purposely shut down.
Cancel. The sender purposely cancelled the operation.
Invalid state. An internal error happened and the sender cut off this connection.
No error. Expected state transition.