public interface ChannelTransport<E extends Endpoint> extends Transport<E>
DEFAULT_APP_ID| 修飾子とタイプ | メソッドと説明 |
|---|---|
ChannelListener<E> |
getChannelListener()
Get channel listener for the object which has default object ID.
|
ChannelListener<E> |
getChannelListener(ObjectId upper)
Get channel listener.
|
E |
getEndpoint()
Returns the local endpoint of the Transport.
|
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.
|
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() |
fin, getBaseTransport, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, setListener, setListenerboolean supportsDuplex()
void setChannelListener(ObjectId upper, ChannelListener<E> listener)
upper - the object ID of the transport object to set listener.listener - the channel listener to set.ChannelListener<E> getChannelListener(ObjectId upper)
upper - the object IDvoid setChannelListener(ChannelListener<E> listener)
listener - the channel listner to set.ChannelListener<E> getChannelListener()
E getEndpoint()
TransportgetEndpoint インタフェース内 Transport<E extends Endpoint>Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, int timeout) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(ObjectId appId, E dst) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(E dst) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(ObjectId appId, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(ObjectId appId, E dst, TransOptions opts) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(E dst, TransOptions opts) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(ObjectId sender, ObjectId receiver, E dst, boolean isDuplex, TransOptions opts) throws ProtocolUnsupportedException, IOException
Channel<E> newChannel(TransportId upperTrans, E dst) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(TransportId upperTrans, E dst, int timeout) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex, int timeout) throws ProtocolUnsupportedException, IOException
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.Channel<E> newChannel(TransportId upperTrans, E dst, boolean isDuplex, TransOptions opts) throws ProtocolUnsupportedException, IOException
Copyright © 2017. All rights reserved.