パッケージ org.piax.gtrans.raw
クラス MonoTransportImpl<E extends Endpoint>
java.lang.Object
org.piax.gtrans.impl.TransportImpl<E>
org.piax.gtrans.impl.ChannelTransportImpl<E>
org.piax.gtrans.raw.MonoTransportImpl<E>
- すべての実装されたインタフェース:
Closeable,AutoCloseable,ChannelTransport<E>,MonoTransport<E>,Transport<E>
- 直系の既知のサブクラス:
RawTransport
public abstract class MonoTransportImpl<E extends Endpoint> extends ChannelTransportImpl<E> implements MonoTransport<E>
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected ChannelListener<E>chListenerprotected TransportListener<E>listenerクラスから継承されたフィールド org.piax.gtrans.impl.TransportImpl
defaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppers -
コンストラクタの概要
コンストラクタ 修飾子 コンストラクタ 説明 protectedMonoTransportImpl(PeerId peerId, boolean supportsDuplex)RawTransportのように、ServiceIdを持たないTransportを生成する。protectedMonoTransportImpl(Peer peer, TransportId transId, Transport<?> lowerTrans, boolean supportsDuplex) -
メソッドの概要
修飾子とタイプ メソッド 説明 voidfin()ChannelListener<E>getChannelListener()ChannelListener<E>getChannelListener(ObjectId receiver)TransportListener<E>getListener()TransportListener<E>getListener(ObjectId receiver)Channel<E>newChannel(E dst)Channel<E>newChannel(E dst, boolean isDuplex)abstract Channel<E>newChannel(E dst, boolean isDuplex, int timeout)Channel<E>newChannel(E dst, int timeout)Channel<E>newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, int timeout)abstract voidsend(E dst, Object msg)voidsend(ObjectId sender, ObjectId receiver, E dst, Object msg, TransOptions opts)voidsetChannelListener(ObjectId receiver, ChannelListener<E> listener)voidsetChannelListener(ChannelListener<E> listener)voidsetListener(ObjectId receiver, TransportListener<E> listener)voidsetListener(TransportListener<E> listener)クラスから継承されたメソッド org.piax.gtrans.impl.ChannelTransportImpl
newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, supportsDuplex, toString0クラスから継承されたメソッド org.piax.gtrans.impl.TransportImpl
checkActive, getBaseTransport, getDefaultAppId, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, toStringクラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitインタフェースから継承されたメソッド org.piax.gtrans.ChannelTransport
getEndpoint, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, newChannel, supportsDuplexインタフェースから継承されたメソッド org.piax.gtrans.Transport
close, getBaseTransport, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync
-
フィールド詳細
-
コンストラクタの詳細
-
MonoTransportImpl
protected MonoTransportImpl(Peer peer, TransportId transId, Transport<?> lowerTrans, boolean supportsDuplex) throws IdConflictException -
MonoTransportImpl
RawTransportのように、ServiceIdを持たないTransportを生成する。- パラメータ:
peerId- the id of the peer.supportsDuplex- true if the transport supports duplex.
-
-
メソッドの詳細
-
fin
public void fin() -
setListener
- 定義:
setListenerインタフェース内Transport<E extends Endpoint>- オーバーライド:
setListenerクラス内TransportImpl<E extends Endpoint>
-
getListener
- 定義:
getListenerインタフェース内Transport<E extends Endpoint>- オーバーライド:
getListenerクラス内TransportImpl<E extends Endpoint>
-
setListener
- 定義:
setListenerインタフェース内MonoTransport<E extends Endpoint>- 定義:
setListenerインタフェース内Transport<E extends Endpoint>- オーバーライド:
setListenerクラス内TransportImpl<E extends Endpoint>
-
getListener
- 定義:
getListenerインタフェース内MonoTransport<E extends Endpoint>- 定義:
getListenerインタフェース内Transport<E extends Endpoint>- オーバーライド:
getListenerクラス内TransportImpl<E extends Endpoint>
-
setChannelListener
- 定義:
setChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- オーバーライド:
setChannelListenerクラス内ChannelTransportImpl<E extends Endpoint>
-
getChannelListener
- 定義:
getChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- オーバーライド:
getChannelListenerクラス内ChannelTransportImpl<E extends Endpoint>
-
setChannelListener
- 定義:
setChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- 定義:
setChannelListenerインタフェース内MonoTransport<E extends Endpoint>- オーバーライド:
setChannelListenerクラス内ChannelTransportImpl<E extends Endpoint>
-
getChannelListener
- 定義:
getChannelListenerインタフェース内ChannelTransport<E extends Endpoint>- 定義:
getChannelListenerインタフェース内MonoTransport<E extends Endpoint>- オーバーライド:
getChannelListenerクラス内ChannelTransportImpl<E extends Endpoint>
-
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
-
send
- 定義:
sendインタフェース内MonoTransport<E extends Endpoint>- 定義:
sendインタフェース内Transport<E extends Endpoint>- オーバーライド:
sendクラス内TransportImpl<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
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
-
newChannel
- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 定義:
newChannelインタフェース内MonoTransport<E extends Endpoint>- オーバーライド:
newChannelクラス内ChannelTransportImpl<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
- 定義:
newChannelインタフェース内MonoTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public Channel<E> newChannel(E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内ChannelTransport<E extends Endpoint>- 定義:
newChannelインタフェース内MonoTransport<E extends Endpoint>- オーバーライド:
newChannelクラス内ChannelTransportImpl<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-
newChannel
public abstract Channel<E> newChannel(E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException- 定義:
newChannelインタフェース内MonoTransport<E extends Endpoint>- 例外:
ProtocolUnsupportedExceptionIOException
-