Package com.jme3.network.base
Class ConnectorAdapter
java.lang.Object
java.lang.Thread
com.jme3.network.base.ConnectorAdapter
- All Implemented Interfaces:
- Runnable
Wraps a single Connector and forwards new messages
  to the supplied message dispatcher.  This is used
  by DefaultClient to manage its connector objects.
  This is only responsible for message reading and provides
  no support for buffering writes.
  
This adapter assumes a simple protocol where two bytes define a (short) object size with the object data to follow. Note: this limits the size of serialized objects to 32676 bytes... even though, for example, datagram packets can hold twice that. :P
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class java.lang.ThreadThread.Builder, Thread.State, Thread.UncaughtExceptionHandler
- 
Field SummaryFields inherited from class java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
- 
Constructor SummaryConstructorsConstructorDescriptionConnectorAdapter(Connector connector, MessageProtocol protocol, MessageListener<Object> dispatcher, ErrorListener<Object> errorHandler, boolean reliable) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()protected voidprotected voidvoidrun()voidwrite(ByteBuffer data) Methods inherited from class java.lang.ThreadactiveCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
- 
Constructor Details- 
ConnectorAdapterpublic ConnectorAdapter(Connector connector, MessageProtocol protocol, MessageListener<Object> dispatcher, ErrorListener<Object> errorHandler, boolean reliable) 
 
- 
- 
Method Details