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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleError(Object source, Throwable t) Handles an error that occurred on the specified source.voidmessageReceived(Object source, Message m) Called when a message is received from a source.
-
Constructor Details
-
Redispatch
public Redispatch()Creates the redispatch bridge.
-
-
Method Details
-
messageReceived
Description copied from interface:MessageListenerCalled when a message is received from a source.- Specified by:
messageReceivedin interfaceMessageListener<Object>- Parameters:
source- the connection or endpoint that delivered the messagem- the received message
-
handleError
Description copied from interface:ErrorListenerHandles an error that occurred on the specified source.- Specified by:
handleErrorin interfaceErrorListener<Object>- Parameters:
source- the connection or endpoint that produced the errort- the error that was raised
-