List of usage examples for io.vertx.core.eventbus ReplyFailure RECIPIENT_FAILURE
ReplyFailure RECIPIENT_FAILURE
To view the source code for io.vertx.core.eventbus ReplyFailure RECIPIENT_FAILURE.
Click Source Link
From source file:net.kuujo.vertigo.instance.impl.ComponentInstanceImpl.java
License:Apache License
@Override public void handle(Message<Object> message) { String action = message.headers().get(ACTION_HEADER); if (action == null) { input.handle(message);//from w w w. j av a2 s.c o m } else { switch (action) { case MESSAGE_ACTION: input.handle(message); break; case ACK_ACTION: case FAIL_ACTION: case PAUSE_ACTION: case RESUME_ACTION: output.handle(message); break; default: message.fail(ReplyFailure.RECIPIENT_FAILURE.toInt(), String.format("Invalid action %s", action)); } } }