Class RefboxHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      RefboxHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connection_lost​(java.io.IOException e)  
      void handle_message​(@NonNull java.nio.ByteBuffer in_msg, @NonNull com.google.protobuf.GeneratedMessageV3 msg)
      This method is called by the ProtobufClient/ProtobufBroadcastPeer.
      void timeout()  
      • Methods inherited from class java.lang.Object

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

      • RefboxHandler

        public RefboxHandler()
    • Method Detail

      • handle_message

        public void handle_message​(@NonNull
                                   @NonNull java.nio.ByteBuffer in_msg,
                                   @NonNull
                                   @NonNull com.google.protobuf.GeneratedMessageV3 msg)
        Description copied from interface: ProtobufMessageHandler
        This method is called by the ProtobufClient/ProtobufBroadcastPeer. The GeneratedMessage passed to it is an instance of the same type as the protobuf message you received. It is used to identify the type of the protobuf message. The actual model is contained in the ByteBuffer. You can read the tutorial to find out how to handle incoming messages correctly.
        Specified by:
        handle_message in interface ProtobufMessageHandler
        Parameters:
        in_msg - the ByteBuffer containing the actual model
        msg - the instance of the same type as the protobuf message you received