クラス LWTcpChannel
- すべての実装されたインタフェース:
Runnable,Channel<TcpLocator>
public class LWTcpChannel extends RawChannel<TcpLocator> implements Runnable
-
フィールドの概要
-
メソッドの概要
修飾子とタイプ メソッド 説明 voidclose()RawChannelをcloseする。static voidfreeDirectBuffer(ByteBuffer buffer)GCを待たずにDirectByteBufferを開放する。intgetChannelNo()TcpLocatorgetRemote()RawChannelの相手側のPeerLocatorを取得する。booleanisCreatorSide()voidrun()voidsend(ByteBuffer bbuf)voidwakeupWritable()クラスから継承されたメソッド org.piax.gtrans.raw.RawChannel
getLocal, getLocalObjectId, getRemoteObjectId, getTransportId, isClosed, isDuplex, putReceiveQueue, receive, receive, send
-
メソッドの詳細
-
isCreatorSide
public boolean isCreatorSide()- 定義:
isCreatorSideインタフェース内Channel<TcpLocator>- 定義:
isCreatorSideクラス内RawChannel<TcpLocator>
-
close
public void close()クラスからコピーされた説明:RawChannelRawChannelをcloseする。 尚、すでにcloseされたRawChannelを再びcloseしても問題は起こらない。- 定義:
closeインタフェース内Channel<TcpLocator>- オーバーライド:
closeクラス内RawChannel<TcpLocator>
-
wakeupWritable
public void wakeupWritable() -
send
- 定義:
sendクラス内RawChannel<TcpLocator>- 例外:
IOException
-
freeDirectBuffer
GCを待たずにDirectByteBufferを開放する。 JVMの実装に依存しているので注意 失敗しても元々で、GCで開放されるはず。- パラメータ:
buffer- the bytebuffer to free.
-
run
public void run() -
getRemote
クラスからコピーされた説明:RawChannelRawChannelの相手側のPeerLocatorを取得する。- 定義:
getRemoteインタフェース内Channel<TcpLocator>- 定義:
getRemoteクラス内RawChannel<TcpLocator>- 戻り値:
- RawChannelの相手側のPeerLocator
-
getChannelNo
public int getChannelNo()- 定義:
getChannelNoインタフェース内Channel<TcpLocator>- 定義:
getChannelNoクラス内RawChannel<TcpLocator>
-