パッケージ org.piax.gtrans
インタフェース RequestTransport<D extends Destination>
- すべてのスーパーインタフェース:
AutoCloseable,Closeable,Transport<D>
- 既知のサブインタフェースのリスト:
Overlay<D,K>
- 既知の実装クラスのリスト:
OverlayImpl,RequestTransportImpl
public interface RequestTransport<D extends Destination> extends Transport<D>
A Transport with Request/Response
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ インタフェース 説明 static classRequestTransport.Response -
フィールドの概要
-
メソッドの概要
修飾子とタイプ メソッド 説明 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(ObjectId sender, ObjectId receiver, D dst, Object msg, TransOptions opts)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.default voidrequestAsync(D dst, Object msg, BiConsumer<Object,Exception> responseReceiver)default voidrequestAsync(D dst, Object msg, BiConsumer<Object,Exception> responseReceiver, TransOptions opts)default voidrequestAsync(String appIdStr, D dst, Object msg, BiConsumer<Object,Exception> responseReceiver)default voidrequestAsync(String appIdStr, D dst, Object msg, BiConsumer<Object,Exception> responseReceiver, TransOptions opts)default voidrequestAsync(ObjectId appId, D dst, Object msg, BiConsumer<Object,Exception> responseReceiver)default voidrequestAsync(ObjectId appId, D dst, Object msg, BiConsumer<Object,Exception> responseReceiver, TransOptions opts)voidrequestAsync(ObjectId sender, ObjectId receiver, D dst, Object msg, BiConsumer<Object,Exception> resultsReceiver, TransOptions opts)<E> FutureQueue<E>singletonFutureQueue(E value)<E> FutureQueue<E>singletonFutureQueue(E value, Throwable t)インタフェースから継承されたメソッド org.piax.gtrans.Transport
close, fin, getBaseTransport, getEndpoint, getListener, getListener, getLowerTransport, getLowerTransports, getMTU, getPeer, getPeerId, getTransportId, getTransportIdPath, hasStableLocator, isUp, send, send, send, send, send, send, send, send, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, sendAsync, setListener, setListener
-
メソッドの詳細
-
request
FutureQueue<?> request(ObjectId sender, ObjectId receiver, D dst, Object msg, int timeout) throws ProtocolUnsupportedException, IOExceptionSend a request message. FutureQueue object is returned to access arrived responses.- パラメータ:
sender- the object ID of the sender.receiver- the object ID of the receiver.dst- the destination.msg- the request message.timeout- the timeout.- 戻り値:
- the future queue to access responses.
- 例外:
ProtocolUnsupportedException- thrown when the protocol is not supported.IOException- thrown when an I/O error occurs.
-
request
FutureQueue<?> request(ObjectId sender, ObjectId receiver, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOExceptionSend a request message. FutureQueue object is returned to access arrived responses.- パラメータ:
sender- the object ID of the sender.receiver- the object ID of the receiver.dst- the destination.msg- the request message.opts- the options.- 戻り値:
- the future queue to access responses.
- 例外:
ProtocolUnsupportedException- thrown when the protocol is not supported.IOException- thrown when an I/O error occurs.
-
request
FutureQueue<?> request(ObjectId sender, ObjectId receiver, D dst, Object msg) throws ProtocolUnsupportedException, IOExceptionSend a request message. FutureQueue object is returned to access arrived responses.- パラメータ:
sender- the object ID of the sender.receiver- the object ID of the receiver.dst- the destination.msg- the request message.- 戻り値:
- the future queue to access responses.
- 例外:
ProtocolUnsupportedException- thrown when the protocol is not supported.IOException- thrown when an I/O error occurs.
-
request
FutureQueue<?> request(ObjectId appId, D dst, Object msg) throws ProtocolUnsupportedException, IOException -
request
FutureQueue<?> request(ObjectId appId, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException -
request
-
request
FutureQueue<?> request(D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOException -
request
FutureQueue<?> request(D dst, Object msg, int timeout) throws ProtocolUnsupportedException, IOException -
requestAsync
void requestAsync(ObjectId sender, ObjectId receiver, D dst, Object msg, BiConsumer<Object,Exception> resultsReceiver, TransOptions opts) -
requestAsync
default void requestAsync(String appIdStr, D dst, Object msg, BiConsumer<Object,Exception> responseReceiver, TransOptions opts) -
requestAsync
default void requestAsync(ObjectId appId, D dst, Object msg, BiConsumer<Object,Exception> responseReceiver, TransOptions opts) -
requestAsync
-
requestAsync
-
requestAsync
default void requestAsync(D dst, Object msg, BiConsumer<Object,Exception> responseReceiver, TransOptions opts) -
requestAsync
-
singletonFutureQueue
-
singletonFutureQueue
-
request
FutureQueue<?> request(TransportId upperTrans, D dst, Object msg, int timeout) throws ProtocolUnsupportedException, IOExceptionSend a request message. FutureQueue object is returned to access arrived responses.- パラメータ:
upperTrans- the transport ID of the transport.dst- the destination.msg- the request message.timeout- the timeout.- 戻り値:
- the future queue to access responses.
- 例外:
ProtocolUnsupportedException- thrown when the protocol is not supported.IOException- thrown when an I/O error occurs.
-
request
FutureQueue<?> request(TransportId upperTrans, D dst, Object msg, TransOptions opts) throws ProtocolUnsupportedException, IOExceptionSend a request message. FutureQueue object is returned to access arrived responses.- パラメータ:
upperTrans- the transport ID of the transport.dst- the destination.msg- the request message.opts- the options.- 戻り値:
- the future queue to access responses.
- 例外:
ProtocolUnsupportedException- thrown when the protocol is not supported.IOException- thrown when an I/O error occurs.
-
request
FutureQueue<?> request(TransportId upperTrans, D dst, Object msg) throws ProtocolUnsupportedException, IOExceptionSend a request message. FutureQueue object is returned to access arrived responses.- パラメータ:
upperTrans- the transport ID of the transport.dst- the destination.msg- the request message.- 戻り値:
- the future queue to access responses.
- 例外:
ProtocolUnsupportedException- thrown when the protocol is not supported.IOException- thrown when an I/O error occurs.
-