public abstract class RawChannel<E extends PeerLocator> extends Object implements Channel<E>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
isActive |
| コンストラクタと説明 |
|---|
RawChannel() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
RawChannelをcloseする。
|
abstract int |
getChannelNo()
このChannelが内部的に持つ番号を返す。
|
E |
getLocal()
このChannelのローカル側のEndpointを返す。
|
ObjectId |
getLocalObjectId()
このChannelのローカル側に位置するエンティティのobject IDを返す。
|
abstract E |
getRemote()
RawChannelの相手側のPeerLocatorを取得する。
|
ObjectId |
getRemoteObjectId()
このChannelのリモート側に位置するエンティティのobject IDを返す。
|
TransportId |
getTransportId()
このChannelオブジェクトを所有するTransportオブジェクトのtransport IDを返す。
|
boolean |
isClosed() |
abstract boolean |
isCreatorSide()
このChannelオブジェクトを持つTransportオブジェクトによってChannelが生成されたかどうかを判定する。
|
boolean |
isDuplex()
このChannelが双方向通信可能かどうかを判定する。
|
protected void |
putReceiveQueue(Object msg) |
Object |
receive()
Channelから直ちにメッセージを受信する。
|
Object |
receive(int timeout)
Channelからメッセージを受信する。
|
abstract void |
send(ByteBuffer bbuf) |
void |
send(Object msg)
Channelにmsgにより指定されたメッセージを送信する。
|
public void close()
close インタフェース内 Channel<E extends PeerLocator>public boolean isClosed()
isClosed インタフェース内 Channel<E extends PeerLocator>public abstract int getChannelNo()
ChannelgetChannelNo インタフェース内 Channel<E extends PeerLocator>public abstract E getRemote()
getRemote インタフェース内 Channel<E extends PeerLocator>public abstract boolean isCreatorSide()
ChannelisCreatorSide インタフェース内 Channel<E extends PeerLocator>public abstract void send(ByteBuffer bbuf) throws IOException
IOExceptionpublic void send(Object msg) throws IOException
Channelsend インタフェース内 Channel<E extends PeerLocator>msg - 送信メッセージIOException - I/Oエラーが発生した場合protected void putReceiveQueue(Object msg)
public Object receive()
Channelreceive インタフェース内 Channel<E extends PeerLocator>public Object receive(int timeout) throws NetworkTimeoutException
Channelreceive インタフェース内 Channel<E extends PeerLocator>timeout - 受信のための待機時間(msec)NetworkTimeoutException - 待機時間が経過した場合public TransportId getTransportId()
ChannelgetTransportId インタフェース内 Channel<E extends PeerLocator>public E getLocal()
ChannelgetLocal インタフェース内 Channel<E extends PeerLocator>public ObjectId getLocalObjectId()
ChannelgetLocalObjectId インタフェース内 Channel<E extends PeerLocator>public ObjectId getRemoteObjectId()
ChannelgetRemoteObjectId インタフェース内 Channel<E extends PeerLocator>public boolean isDuplex()
ChannelisDuplex インタフェース内 Channel<E extends PeerLocator>Copyright © 2017. All rights reserved.