|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface Connector
A single channel remote connection allowing the sending and receiving of data. As opposed to the Kernel, this will only ever receive data from one Endpoint and so bypasses the envelope wrapping.
メソッドの概要 | |
---|---|
boolean |
available()
Returns true if there is currently data available for reading. |
void |
close()
Closes the connection. |
boolean |
isConnected()
Returns true if this connector is currently connected. |
java.nio.ByteBuffer |
read()
Reads a chunk of data from the connection, blocking if there is no data available. |
void |
write(java.nio.ByteBuffer data)
Writes a chunk of data to the connection from data.position() to data.limit(). |
メソッドの詳細 |
---|
boolean isConnected()
void close()
boolean available()
java.nio.ByteBuffer read()
void write(java.nio.ByteBuffer data)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |