Class DefaultClient.Redispatch

java.lang.Object
com.jme3.network.base.DefaultClient.Redispatch
All Implemented Interfaces:
ErrorListener<Object>, MessageListener<Object>
Enclosing class:
DefaultClient

protected class DefaultClient.Redispatch extends Object implements MessageListener<Object>, ErrorListener<Object>
Bridges connector callbacks back into this client instance.
Author:
Paul Speed
  • Constructor Details

    • Redispatch

      public Redispatch()
      Creates the redispatch bridge.
  • Method Details

    • messageReceived

      public void messageReceived(Object source, Message m)
      Description copied from interface: MessageListener
      Called when a message is received from a source.
      Specified by:
      messageReceived in interface MessageListener<Object>
      Parameters:
      source - the connection or endpoint that delivered the message
      m - the received message
    • handleError

      public void handleError(Object source, Throwable t)
      Description copied from interface: ErrorListener
      Handles an error that occurred on the specified source.
      Specified by:
      handleError in interface ErrorListener<Object>
      Parameters:
      source - the connection or endpoint that produced the error
      t - the error that was raised