Package 

Interface MessageHandler


  • 
    public interface MessageHandler<T extends Object>
    
                        

    A MessageHandler is a type representing a suspendable function that is a callback which is executed when a message is received.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit handle(T message) Handle the received message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handle

         abstract Unit handle(T message)

        Handle the received message.

        Parameters:
        message - the received message