Package com.jme3.network.kernel
Class AbstractKernel
java.lang.Object
com.jme3.network.kernel.AbstractKernel
- All Implemented Interfaces:
- Kernel
- Direct Known Subclasses:
- SelectorKernel,- UdpKernel
Base implementation of the Kernel interface providing several
  useful default implementations of some methods.  This implementation
  assumes that the kernel will be managing its own internal threads
  and queuing any results for the caller to retrieve on their own
  thread.
- 
Field SummaryFields inherited from interface com.jme3.network.kernel.KernelEVENTS_PENDING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidaddEnvelope(Envelope env) protected voidbooleanReturns true if there are waiting envelopes.protected longRemoves and returns one endpoint event from the event queue or null if there are no endpoint events.read()Removes one envelope from the received messages queue or blocks until one is available.protected voidprotected voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.network.kernel.Kernelbroadcast, initialize, terminate
- 
Constructor Details- 
AbstractKernelprotected AbstractKernel()
 
- 
- 
Method Details- 
reportError
- 
wakeupReaderprotected void wakeupReader()
- 
nextEndpointIdprotected long nextEndpointId()
- 
hasEnvelopespublic boolean hasEnvelopes()Returns true if there are waiting envelopes.- Specified by:
- hasEnvelopesin interface- Kernel
 
- 
readRemoves one envelope from the received messages queue or blocks until one is available.- Specified by:
- readin interface- Kernel
- Throws:
- InterruptedException
 
- 
nextEventRemoves and returns one endpoint event from the event queue or null if there are no endpoint events.
- 
addEvent
- 
addEnvelope
 
-