パッケージ org.piax.gtrans.impl
クラス OneToOneMappingTransport<E extends Endpoint>
java.lang.Object
org.piax.gtrans.impl.TransportImpl<E>
org.piax.gtrans.impl.ChannelTransportImpl<E>
org.piax.gtrans.impl.OneToOneMappingTransport<E>
- すべての実装されたインタフェース:
Closeable,AutoCloseable,ChannelListener<E>,ChannelTransport<E>,Transport<E>,TransportListener<E>
- 直系の既知のサブクラス:
BaseChannelTransportImpl,FragmentationTransport,ThroughTransport
public abstract class OneToOneMappingTransport<E extends Endpoint> extends ChannelTransportImpl<E> implements TransportListener<E>, ChannelListener<E>
下位層にTransportを持ち、send, channel.send をそのまま下位層のTransportに流すような
Transportを作成するためのテンプレートクラス
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 protected static classOneToOneMappingTransport.OneToOneChannel<E extends Endpoint>OneToOneMappingTransportの内部で使用する下位層のchannelをラップするだけの ChannelImplクラス -
フィールドの概要
クラスから継承されたフィールド org.piax.gtrans.impl.TransportImpl
defaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppers -
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedOneToOneMappingTransport(TransportId transId, ChannelTransport<E> lowerTrans) -
メソッドの概要
クラスから継承されたメソッド org.piax.gtrans.impl.ChannelTransportImpl
fin, getChannelListener, getChannelListener, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, setChannelListener, setChannelListener, supportsDuplex, toString0クラスから継承されたメソッド org.piax.gtrans.impl.TransportImpl
checkActive, getBaseTransport, getDefaultAppId, getListener, getListener, getLowerTransports, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, setListener, setListener, toStringクラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitインタフェースから継承されたメソッド org.piax.gtrans.Transport
close, getBaseTransport, getListener, getListener, getLowerTransports, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, setListener, setListener
-
コンストラクタの詳細
-
OneToOneMappingTransport
protected OneToOneMappingTransport(TransportId transId, ChannelTransport<E> lowerTrans) throws IdConflictException
-
-
メソッドの詳細
-
getEndpoint
- 定義:
getEndpointインタフェース内ChannelTransport<E extends Endpoint>- 定義:
getEndpointインタフェース内Transport<E extends Endpoint>
-
getMTU
public int getMTU() -
getLowerTransport
- 定義:
getLowerTransportインタフェース内Transport<E extends Endpoint>- オーバーライド:
getLowerTransportクラス内TransportImpl<E extends Endpoint>
-
newChannel
public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 定義:
newChannelクラス内ChannelTransportImpl<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
putCh
protected OneToOneMappingTransport.OneToOneChannel<E> putCh(Channel<E> lowerCh, OneToOneMappingTransport.OneToOneChannel<E> ch) -
removeCh
-
getCh
-
onAccepting
- 定義:
onAcceptingインタフェース内ChannelListener<E extends Endpoint>
-
onClosed
- 定義:
onClosedインタフェース内ChannelListener<E extends Endpoint>
-
onFailure
- 定義:
onFailureインタフェース内ChannelListener<E extends Endpoint>
-
_preSend
protected Object _preSend(ObjectId sender, ObjectId receiver, E dst, Object msg) throws IOException- 例外:
IOException
-
lowerSend
protected void lowerSend(ObjectId sender, ObjectId receiver, E dst, NestedMessage nmsg, TransOptions opts) throws ProtocolUnsupportedException, IOException -
lowerChSend
- 例外:
IOException
-
send
public void send(ObjectId sender, ObjectId receiver, E dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException- 定義:
sendインタフェース内Transport<E extends Endpoint>- 定義:
sendクラス内TransportImpl<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
chSend
protected void chSend(OneToOneMappingTransport.OneToOneChannel<E> ch, Object msg) throws IOException- 例外:
IOException
-
_postReceive
-
onReceive
- 定義:
onReceiveインタフェース内ChannelListener<E extends Endpoint>
-
_putReceiveQueue
protected OneToOneMappingTransport.OneToOneChannel<E> _putReceiveQueue(Channel<E> lowerCh, NestedMessage nmsg) -
_onReceive
-
onReceive
- 定義:
onReceiveインタフェース内TransportListener<E extends Endpoint>
-
_onReceive
-