Package bftsmart.tom.util
Interface Extractor
-
public interface Extractor
Provides support for building custom response extractors to be used in the ServiceProxy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TOMMessage
extractResponse(TOMMessage[] replies, int sameContent, int lastReceived)
Extracts a reply given a set of replies from a set of replicas.
-
-
-
Method Detail
-
extractResponse
TOMMessage extractResponse(TOMMessage[] replies, int sameContent, int lastReceived)
Extracts a reply given a set of replies from a set of replicas.- Parameters:
replies
- Set of replies from a set of replicas.sameContent
- Whether or not the replies are supposed to have the same contentlastReceived
- Last reply received from the replicas. This is an index in relation to the `replies` parameter.- Returns:
-
-