public static class SlidingWindow.Server<REQUEST extends SlidingWindow.ServerSideRequest<REPLY>,REPLY> extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
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 in interface Closeableclose in interface AutoCloseableCopyright © 2017–2022 The Apache Software Foundation. All rights reserved.