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.
メソッドの概要 |
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. |
クラス 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.