com.jme3.network.kernel.tcp
クラス SelectorKernel

java.lang.Object
  上位を拡張 com.jme3.network.kernel.AbstractKernel
      上位を拡張 com.jme3.network.kernel.tcp.SelectorKernel
すべての実装されたインタフェース:
Kernel

public class SelectorKernel
extends AbstractKernel

A Kernel implementation based on NIO selectors.


フィールドの概要
 
インタフェース com.jme3.network.kernel.Kernel から継承されたフィールド
EVENTS_PENDING
 
コンストラクタの概要
SelectorKernel(java.net.InetAddress host, int port)
           
SelectorKernel(java.net.InetSocketAddress address)
           
SelectorKernel(int port)
           
 
メソッドの概要
 void broadcast(Filter<? super Endpoint> filter, java.nio.ByteBuffer data, boolean reliable, boolean copy)
          Dispatches the data to all endpoints managed by the kernel that match the specified endpoint filter..
 void initialize()
          Initializes the kernel and starts any internal processing.
 void terminate()
          Gracefully terminates the kernel and stops any internal daemon processing.
 
クラス com.jme3.network.kernel.AbstractKernel から継承されたメソッド
hasEnvelopes, nextEvent, read
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SelectorKernel

public SelectorKernel(java.net.InetAddress host,
                      int port)

SelectorKernel

public SelectorKernel(int port)
               throws java.io.IOException
例外:
java.io.IOException

SelectorKernel

public SelectorKernel(java.net.InetSocketAddress address)
メソッドの詳細

initialize

public void initialize()
インタフェース Kernel の記述:
Initializes the kernel and starts any internal processing.


terminate

public void terminate()
               throws java.lang.InterruptedException
インタフェース Kernel の記述:
Gracefully terminates the kernel and stops any internal daemon processing. This method will not return until all internal threads have been shut down.

例外:
java.lang.InterruptedException

broadcast

public void broadcast(Filter<? super Endpoint> filter,
                      java.nio.ByteBuffer data,
                      boolean reliable,
                      boolean copy)
インタフェース Kernel の記述:
Dispatches the data to all endpoints managed by the kernel that match the specified endpoint filter.. If 'copy' is true then the implementation will copy the byte buffer before delivering it to endpoints. This allows the caller to reuse the data buffer. Though it is important that the buffer not be changed by another thread while this call is running. Only the bytes from data.position() to data.remaining() are sent.