![]() |
Open Kilda Java Documentation
|
Public Member Functions | |
| MessageExchanger () | |
| MessageExchanger (Message response, String correlationId) | |
| Message | poll (String correlationId) |
| void | clear () |
| void | send (String topic, Message message) |
| void | mockResponse (Message message) |
| void | resetMockedResponses () |
Additional Inherited Members |
Message producer/consumer implementation for testing purposes. Processes all send/poll operations and sends back prepared in advance responses by specified request id (correlation id).
Definition at line 29 of file MessageExchanger.java.
| org.openkilda.northbound.MessageExchanger.MessageExchanger | ( | ) |
Definition at line 33 of file MessageExchanger.java.
| org.openkilda.northbound.MessageExchanger.MessageExchanger | ( | Message | response, |
| String | correlationId | ||
| ) |
Definition at line 35 of file MessageExchanger.java.
| void org.openkilda.northbound.MessageExchanger.clear | ( | ) |
Clears message queue.
Implements org.openkilda.northbound.messaging.MessageConsumer< T >.
Definition at line 45 of file MessageExchanger.java.
| void org.openkilda.northbound.MessageExchanger.mockResponse | ( | Message | message | ) |
Definition at line 57 of file MessageExchanger.java.
| Message org.openkilda.northbound.MessageExchanger.poll | ( | String | correlationId | ) |
Polls Kafka message queue.
| correlationId | correlation id |
Implements org.openkilda.northbound.messaging.MessageConsumer< T >.
Definition at line 40 of file MessageExchanger.java.
| void org.openkilda.northbound.MessageExchanger.resetMockedResponses | ( | ) |
Definition at line 61 of file MessageExchanger.java.
| void org.openkilda.northbound.MessageExchanger.send | ( | String | topic, |
| Message | message | ||
| ) |
Sends messages to WorkFlowManager.
| topic | kafka topic |
| message | message to serialize and send |
Implements org.openkilda.northbound.messaging.MessageProducer.
Definition at line 49 of file MessageExchanger.java.