- All Implemented Interfaces:
- MessageProcessor
public class HeartbeatIAmAliveProcessor
extends Object
implements MessageProcessor
When a message is received, create an I Am Alive message as well, since we know that the sending instance is up.
The exceptions to this rule are:
- when the message is of type "I Am Alive", since this would lead to a feedback loop of more and more "I Am Alive"
messages being sent.
- when the message is of type "Suspicions", since these should be ignored for failed instances and generating an
"I Am Alive" message for it would mark the instance as alive before ignoring its suspicions.