public class LWTcpChannel extends RawChannel<TcpLocator> implements Runnable
isActive| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
RawChannelをcloseする。
|
static void |
freeDirectBuffer(ByteBuffer buffer)
GCを待たずにDirectByteBufferを開放する。
|
int |
getChannelNo()
このChannelが内部的に持つ番号を返す。
|
TcpLocator |
getRemote()
RawChannelの相手側のPeerLocatorを取得する。
|
boolean |
isCreatorSide()
このChannelオブジェクトを持つTransportオブジェクトによってChannelが生成されたかどうかを判定する。
|
void |
run() |
void |
send(ByteBuffer bbuf) |
void |
wakeupWritable() |
getLocal, getLocalObjectId, getRemoteObjectId, getTransportId, isClosed, isDuplex, putReceiveQueue, receive, receive, sendpublic boolean isCreatorSide()
ChannelisCreatorSide インタフェース内 Channel<TcpLocator>isCreatorSide クラス内 RawChannel<TcpLocator>public void close()
RawChannelclose インタフェース内 Channel<TcpLocator>close クラス内 RawChannel<TcpLocator>public void wakeupWritable()
public void send(ByteBuffer bbuf) throws IOException
send クラス内 RawChannel<TcpLocator>IOExceptionpublic static void freeDirectBuffer(ByteBuffer buffer)
buffer - the bytebuffer to free.public TcpLocator getRemote()
RawChannelgetRemote インタフェース内 Channel<TcpLocator>getRemote クラス内 RawChannel<TcpLocator>public int getChannelNo()
ChannelgetChannelNo インタフェース内 Channel<TcpLocator>getChannelNo クラス内 RawChannel<TcpLocator>Copyright © 2017. All rights reserved.