public static class SlidingWindow.Server<REQUEST extends SlidingWindow.ServerSideRequest<REPLY>,REPLY> extends Object implements Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
boolean |
endOfRequests(Consumer<REQUEST> replyMethod)
Signal the end of requests.
|
void |
receivedRequest(REQUEST request,
Consumer<REQUEST> processingMethod)
A request (or a retry) arrives (may be out-of-order except for the first request).
|
void |
receiveReply(long seqNum,
REPLY reply,
Consumer<REQUEST> replyMethod)
Receives a reply for the given seqNum (may out-of-order) from the processor.
|
String |
toString() |
public void receivedRequest(REQUEST request, Consumer<REQUEST> processingMethod)
public void receiveReply(long seqNum,
REPLY reply,
Consumer<REQUEST> replyMethod)
public boolean endOfRequests(Consumer<REQUEST> replyMethod)
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.