@API
public interface MessageReceiver
| Modifier and Type | Method and Description |
|---|---|
default com.technia.tif.enovia.rabbitmq.Result |
onException(java.lang.Exception e,
Message msg)
If an exception occurs, this method is called.
|
com.technia.tif.enovia.rabbitmq.Result |
onMessage(Message msg)
Called when a new message appears.
|
com.technia.tif.enovia.rabbitmq.Result onMessage(Message msg) throws java.lang.Exception
msg - The message to handlejava.lang.Exception - If a failure occurs.default com.technia.tif.enovia.rabbitmq.Result onException(java.lang.Exception e,
Message msg)
Result.NACK value.e - The exceptionmsg - The message