public abstract class ChannelTransportImpl<E extends Endpoint> extends TransportImpl<E> implements ChannelTransport<E>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Map<ObjectId,ChannelListener<E>> |
chListenersByUpper |
protected boolean |
supportsDuplex |
defaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppersDEFAULT_APP_ID| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
ChannelTransportImpl(Peer peer,
boolean supportsDuplex)
RawTransportのように、ServiceIdを持たないTransportを生成する。
|
protected |
ChannelTransportImpl(Peer peer,
TransportId transId,
Transport<?> lowerTrans,
boolean supportsDuplex) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
fin()
Finalize the Transport object.
|
ChannelListener<E> |
getChannelListener()
Get channel listener for the object which has default object ID.
|
ChannelListener<E> |
getChannelListener(ObjectId upper)
Get channel listener.
|
Channel<E> |
newChannel(E dst) |
Channel<E> |
newChannel(E dst,
boolean isDuplex) |
Channel<E> |
newChannel(E dst,
TransOptions opts) |
Channel<E> |
newChannel(ObjectId appId,
E dst) |
Channel<E> |
newChannel(ObjectId appId,
E dst,
boolean isDuplex) |
Channel<E> |
newChannel(ObjectId appId,
E dst,
TransOptions opts) |
Channel<E> |
newChannel(ObjectId sender,
ObjectId receiver,
E dst)
Create a new channel.
|
Channel<E> |
newChannel(ObjectId sender,
ObjectId receiver,
E dst,
boolean isDuplex)
Create a new channel with isDuplex.
|
abstract Channel<E> |
newChannel(ObjectId sender,
ObjectId receiver,
E dst,
boolean isDuplex,
int timeout)
Create a new channel with isDuplex and timeout.
|
Channel<E> |
newChannel(ObjectId sender,
ObjectId receiver,
E dst,
boolean isDuplex,
TransOptions opts) |
Channel<E> |
newChannel(ObjectId sender,
ObjectId receiver,
E dst,
int timeout)
Create a new channel with timeout.
|
Channel<E> |
newChannel(TransportId upperTrans,
E dst)
Create a new channel for a transport object.
|
Channel<E> |
newChannel(TransportId upperTrans,
E dst,
boolean isDuplex)
Create a new channel for a transport object with isDuplex.
|
Channel<E> |
newChannel(TransportId upperTrans,
E dst,
boolean isDuplex,
int timeout)
Create a new channel for a transport object with isDuplex and timeout.
|
Channel<E> |
newChannel(TransportId upperTrans,
E dst,
boolean isDuplex,
TransOptions opts) |
Channel<E> |
newChannel(TransportId upperTrans,
E dst,
int timeout)
Create a new channel for a transport object with timeout.
|
void |
setChannelListener(ChannelListener<E> listener)
Set channel listener for the object which has default object ID.
|
void |
setChannelListener(ObjectId upper,
ChannelListener<E> listener)
Set channel listener.
|
boolean |
supportsDuplex() |
String |
toString0() |
checkActive, getBaseTransport, getDefaultAppId, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, setListener, setListener, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndpointgetBaseTransport, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, setListener, setListenerprotected final boolean supportsDuplex
protected final Map<ObjectId,ChannelListener<E extends Endpoint>> chListenersByUpper
protected ChannelTransportImpl(Peer peer, TransportId transId, Transport<?> lowerTrans, boolean supportsDuplex) throws IdConflictException
protected ChannelTransportImpl(Peer peer, boolean supportsDuplex)
peer - the peer object.supportsDuplex - true if the transport supports duplex communication.public void fin()
Transportpublic boolean supportsDuplex()
supportsDuplex インタフェース内 ChannelTransport<E extends Endpoint>public void setChannelListener(ObjectId upper, ChannelListener<E> listener)
ChannelTransportsetChannelListener インタフェース内 ChannelTransport<E extends Endpoint>upper - the object ID of the transport object to set listener.listener - the channel listener to set.public ChannelListener<E> getChannelListener(ObjectId upper)
ChannelTransportgetChannelListener インタフェース内 ChannelTransport<E extends Endpoint>upper - the object IDpublic void setChannelListener(ChannelListener<E> listener)
ChannelTransportsetChannelListener インタフェース内 ChannelTransport<E extends Endpoint>listener - the channel listner to set.public ChannelListener<E> getChannelListener()
ChannelTransportgetChannelListener インタフェース内 ChannelTransport<E extends Endpoint>public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>sender - object ID of the sender.receiver - object ID of the receiver.dst - the endpoint of the destination to create channel.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, int timeout) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>sender - object ID of the sender.receiver - object ID of the receiver.dst - the endpoint of the destination to create channel.timeout - the timeout length.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>sender - object ID of the sender.receiver - object ID of the receiver.dst - the endpoint of the destination to create channel.isDuplex - whether the connection is duplex or not.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(ObjectId appId, E dst) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic Channel<E> newChannel(E dst) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic Channel<E> newChannel(ObjectId appId, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic Channel<E> newChannel(E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic Channel<E> newChannel(ObjectId appId, E dst, TransOptions opts) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic Channel<E> newChannel(E dst, TransOptions opts) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, TransOptions opts) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic abstract Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>sender - object ID of the sender.receiver - object ID of the receiver.dst - the endpoint of the destination to create channel.isDuplex - whether the connection is duplex or not.timeout - the timeout length.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(TransportId upperTrans, E dst) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>upperTrans - the transport object.dst - the endpoint of the destination to create channel.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(TransportId upperTrans, E dst, int timeout) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>upperTrans - the transport object.dst - the endpoint of the destination to create channel.timeout - timeout the timeout length.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>upperTrans - the transport object.dst - the endpoint of the destination to create channel.isDuplex - whether the connection is duplex or not.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException
ChannelTransportnewChannel インタフェース内 ChannelTransport<E extends Endpoint>upperTrans - the transport object.dst - the endpoint of the destination to create channel.isDuplex - whether the connection is duplex or not.timeout - timeout the timeout length.ProtocolUnsupportedException - an exception thrown when the protocol is not supported.IOException - an exception when thrown when an I/O error occurred.public Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex, TransOptions opts) throws ProtocolUnsupportedException, IOException
newChannel インタフェース内 ChannelTransport<E extends Endpoint>ProtocolUnsupportedExceptionIOExceptionpublic String toString0()
toString0 クラス内 TransportImpl<E extends Endpoint>Copyright © 2017. All rights reserved.