| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected PeerId |
creator |
protected boolean |
isDuplex |
protected ObjectId |
localObjectId |
protected ChannelTransport<E> |
mother |
protected E |
remote |
protected ObjectId |
remoteObjectId |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
checkActive()
Channelオブジェクトがアクティブな状態であるかどうかをチェックする。
|
void |
close()
Channelをcloseする。
|
int |
getChannelNo()
このChannelが内部的に持つ番号を返す。
|
E |
getLocal()
このChannelのローカル側のEndpointを返す。
|
ObjectId |
getLocalObjectId()
このChannelのローカル側に位置するエンティティのobject IDを返す。
|
E |
getRemote()
このChannelのリモート側のEndpointを返す。
|
ObjectId |
getRemoteObjectId()
このChannelのリモート側に位置するエンティティのobject IDを返す。
|
TransportId |
getTransportId()
このChannelオブジェクトを所有するTransportオブジェクトのtransport IDを返す。
|
boolean |
isClosed() |
boolean |
isCreatorSide()
このChannelオブジェクトを持つTransportオブジェクトによってChannelが生成されたかどうかを判定する。
|
boolean |
isDuplex()
このChannelが双方向通信可能かどうかを判定する。
|
protected void |
putReceiveQueue(Object msg)
rcvQueueに受信メッセージをputする。
|
Object |
receive()
Channelから直ちにメッセージを受信する。
|
Object |
receive(int timeout)
Channelからメッセージを受信する。
|
String |
toString() |
protected final PeerId creator
protected final ChannelTransport<E extends Endpoint> mother
protected final ObjectId localObjectId
protected final ObjectId remoteObjectId
protected final boolean isDuplex
public void close()
Channelprotected void checkActive()
throws IllegalStateException
IllegalStateException - Channelオブジェクトがインアクティブな状態である場合public TransportId getTransportId()
ChannelgetTransportId インタフェース内 Channel<E extends Endpoint>public int getChannelNo()
ChannelgetChannelNo インタフェース内 Channel<E extends Endpoint>public ObjectId getLocalObjectId()
ChannelgetLocalObjectId インタフェース内 Channel<E extends Endpoint>public ObjectId getRemoteObjectId()
ChannelgetRemoteObjectId インタフェース内 Channel<E extends Endpoint>public boolean isDuplex()
Channelpublic boolean isCreatorSide()
ChannelisCreatorSide インタフェース内 Channel<E extends Endpoint>protected void putReceiveQueue(Object msg)
msg - 受信メッセージpublic Object receive()
Channelpublic Object receive(int timeout) throws NetworkTimeoutException
Channelreceive インタフェース内 Channel<E extends Endpoint>timeout - 受信のための待機時間(msec)NetworkTimeoutException - 待機時間が経過した場合Copyright © 2017. All rights reserved.