public abstract class RequestTransportImpl<D extends Destination> extends TransportImpl<D> implements RequestTransport<D>
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static Object |
NON |
defaultAppId, isActive, isBaseTransport, listenersByUpper, lowerTrans, peer, peerId, transId, transIdPath, uppersDEFAULT_APP_ID| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
RequestTransportImpl(Peer peer,
TransportId transId,
Transport<?> lowerTrans)
Generate a request transport.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected Object |
checkAndClearIsEasySend(Object msg) |
protected TransportListener<D> |
getListener0(ObjectId upper) |
FutureQueue<?> |
request(D dst,
Object msg) |
FutureQueue<?> |
request(D dst,
Object msg,
int timeout) |
FutureQueue<?> |
request(D dst,
Object msg,
TransOptions opts) |
FutureQueue<?> |
request(ObjectId appId,
D dst,
Object msg) |
FutureQueue<?> |
request(ObjectId appId,
D dst,
Object msg,
TransOptions opts) |
FutureQueue<?> |
request(ObjectId sender,
ObjectId receiver,
D dst,
Object msg)
Send a request message.
|
FutureQueue<?> |
request(ObjectId sender,
ObjectId receiver,
D dst,
Object msg,
int timeout)
Send a request message.
|
FutureQueue<?> |
request(TransportId upperTrans,
D dst,
Object msg)
Send a request message.
|
FutureQueue<?> |
request(TransportId upperTrans,
D dst,
Object msg,
int timeout)
Send a request message.
|
FutureQueue<?> |
request(TransportId upperTrans,
D dst,
Object msg,
TransOptions opts)
Send a request message.
|
protected FutureQueue<?> |
selectOnReceive(RequestTransportListener<D> listener,
RequestTransport<D> trans,
ReceivedMessage rmsg) |
void |
send(ObjectId sender,
ObjectId receiver,
D dst,
Object msg)
Send a message from a local object to a remote object.
|
void |
send(ObjectId sender,
ObjectId receiver,
D dst,
Object msg,
TransOptions opts)
Send a message from a local object to a remote object with options.
|
checkActive, fin, getBaseTransport, getDefaultAppId, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, getUppers, hasStableLocator, isUp, send, send, send, send, send, send, setBaseTransport, setDefaultAppId, setListener, setListener, toString, toString0clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrequestfin, getBaseTransport, getEndpoint, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, setListener, setListenerprotected static final Object NON
protected RequestTransportImpl(Peer peer, TransportId transId, Transport<?> lowerTrans) throws IdConflictException
peer - the peer objecttransId - the id of the transport object.lowerTrans - the transport object.IdConflictException - thrown when the transport id is conflicted.protected TransportListener<D> getListener0(ObjectId upper)
public FutureQueue<?> request(ObjectId appId, D dst, Object msg) throws ProtocolUnsupportedException, IOException
request インタフェース内 RequestTransport<D extends Destination>ProtocolUnsupportedExceptionIOExceptionpublic FutureQueue<?> request(ObjectId appId, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException
request インタフェース内 RequestTransport<D extends Destination>ProtocolUnsupportedExceptionIOExceptionpublic FutureQueue<?> request(D dst, Object msg) throws ProtocolUnsupportedException, IOException
request インタフェース内 RequestTransport<D extends Destination>ProtocolUnsupportedExceptionIOExceptionpublic FutureQueue<?> request(D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException
request インタフェース内 RequestTransport<D extends Destination>ProtocolUnsupportedExceptionIOExceptionpublic FutureQueue<?> request(D dst, Object msg, int timeout) throws ProtocolUnsupportedException, IOException
request インタフェース内 RequestTransport<D extends Destination>ProtocolUnsupportedExceptionIOExceptionpublic FutureQueue<?> request(ObjectId sender, ObjectId receiver, D dst, Object msg) throws ProtocolUnsupportedException, IOException
RequestTransportrequest インタフェース内 RequestTransport<D extends Destination>sender - the object ID of the sender.receiver - the object ID of the receiver.dst - the destination.msg - the request message.ProtocolUnsupportedException - thrown when the protocol is not supported.IOException - thrown when an I/O error occurs.public FutureQueue<?> request(ObjectId sender, ObjectId receiver, D dst, Object msg, int timeout) throws ProtocolUnsupportedException, IOException
RequestTransportrequest インタフェース内 RequestTransport<D extends Destination>sender - the object ID of the sender.receiver - the object ID of the receiver.dst - the destination.msg - the request message.timeout - the timeout.ProtocolUnsupportedException - thrown when the protocol is not supported.IOException - thrown when an I/O error occurs.public FutureQueue<?> request(TransportId upperTrans, D dst, Object msg, int timeout) throws ProtocolUnsupportedException, IOException
RequestTransportrequest インタフェース内 RequestTransport<D extends Destination>upperTrans - the transport ID of the transport.dst - the destination.msg - the request message.timeout - the timeout.ProtocolUnsupportedException - thrown when the protocol is not supported.IOException - thrown when an I/O error occurs.public FutureQueue<?> request(TransportId upperTrans, D dst, Object msg) throws ProtocolUnsupportedException, IOException
RequestTransportrequest インタフェース内 RequestTransport<D extends Destination>upperTrans - the transport ID of the transport.dst - the destination.msg - the request message.ProtocolUnsupportedException - thrown when the protocol is not supported.IOException - thrown when an I/O error occurs.public FutureQueue<?> request(TransportId upperTrans, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException
RequestTransportrequest インタフェース内 RequestTransport<D extends Destination>upperTrans - the transport ID of the transport.dst - the destination.msg - the request message.opts - the options.ProtocolUnsupportedException - thrown when the protocol is not supported.IOException - thrown when an I/O error occurs.public void send(ObjectId sender, ObjectId receiver, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException
Transportreceiver on
the peer with destination dst.
This type of send is used when the sender and the receiver have different ObjectId, which means
upper layer exchanges the message using Transport.send インタフェース内 Transport<D extends Destination>send クラス内 TransportImpl<D extends Destination>sender - The ObjectId of the sender.receiver - The ObjectId of the receiver.dst - The Destination of the peer.msg - The message itself.opts - The options for the message transmission.ProtocolUnsupportedException - Raises if the 'dst' peer does not handle the protocol.IOException - Raises if I/O-related exceptions occured.public void send(ObjectId sender, ObjectId receiver, D dst, Object msg) throws ProtocolUnsupportedException, IOException
Transportreceiver on
the peer with destination dst.
This type of send is used when the sender and the receiver have different ObjectId, which means
upper layer exchanges the message using Transport.send インタフェース内 Transport<D extends Destination>sender - The ObjectId of the sender.receiver - The ObjectId of the receiver.dst - The Destination of the peer.msg - The message itself.ProtocolUnsupportedException - Raises if the 'dst' peer does not handle the protocol.IOException - Raises if I/O-related exceptions occured.protected FutureQueue<?> selectOnReceive(RequestTransportListener<D> listener, RequestTransport<D> trans, ReceivedMessage rmsg)
Copyright © 2017. All rights reserved.