Class EventTypeDrasylNode

java.lang.Object
org.drasyl.node.DrasylNode
org.drasyl.node.EventTypeDrasylNode

public abstract class EventTypeDrasylNode extends DrasylNode
An implementation of DrasylNode that provides distinct methods for handling various Event types. These include:
  • Constructor Details

  • Method Details

    • onEvent

      public void onEvent(Event event)
      Description copied from class: DrasylNode
      Sends event to the application and tells it information about the local node, other peers, connections or incoming messages.
      Specified by:
      onEvent in class DrasylNode
      Parameters:
      event - the event
    • onInboundException

      protected void onInboundException(InboundExceptionEvent event)
    • onNodeEvent

      protected void onNodeEvent(NodeEvent event)
    • onPeerEvent

      protected void onPeerEvent(PeerEvent event)
    • onMessage

      protected void onMessage(MessageEvent event)
    • onAnyOtherEvent

      protected void onAnyOtherEvent(Event event)