com.jme3.network.kernel
クラス AbstractKernel

java.lang.Object
  上位を拡張 com.jme3.network.kernel.AbstractKernel
すべての実装されたインタフェース:
Kernel
直系の既知のサブクラス:
SelectorKernel, UdpKernel

public abstract class AbstractKernel
extends java.lang.Object
implements Kernel

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.


フィールドの概要
 
インタフェース com.jme3.network.kernel.Kernel から継承されたフィールド
EVENTS_PENDING
 
メソッドの概要
 boolean hasEnvelopes()
          Returns true if there are waiting envelopes.
 EndpointEvent nextEvent()
          Removes and returnsn one endpoint event from the event queue or null if there are no endpoint events.
 Envelope read()
          Removes one envelope from the received messages queue or blocks until one is available.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース com.jme3.network.kernel.Kernel から継承されたメソッド
broadcast, initialize, terminate
 

メソッドの詳細

hasEnvelopes

public boolean hasEnvelopes()
Returns true if there are waiting envelopes.

定義:
インタフェース Kernel 内の hasEnvelopes

read

public Envelope read()
              throws java.lang.InterruptedException
Removes one envelope from the received messages queue or blocks until one is available.

定義:
インタフェース Kernel 内の read
例外:
java.lang.InterruptedException

nextEvent

public EndpointEvent nextEvent()
Removes and returnsn one endpoint event from the event queue or null if there are no endpoint events.

定義:
インタフェース Kernel 内の nextEvent