MCPcopy Create free account
hub / github.com/bft-smart/library / replyReceived

Method replyReceived

src/main/java/bftsmart/tom/ServiceProxy.java:341–353  ·  view source on GitHub ↗

This is the method invoked by the client side communication system. @param reply The reply delivered by the client side communication system

(TOMMessage reply)

Source from the content-addressed store, hash-verified

339 * @param reply The reply delivered by the client side communication system
340 */
341 @Override
342 public void replyReceived(TOMMessage reply) {
343 logger.debug("Synchronously received reply from {} with sequence number {}", reply.getSender(),
344 reply.getSequence());
345 try {
346 canReceiveLock.lock();
347 requestHandler.processReply(reply);
348 } catch (Exception ex) {
349 logger.error("Problem processing reply", ex);
350 } finally {
351 canReceiveLock.unlock();
352 }
353 }
354
355 private int getRandomlyServerId(){
356 int numServers = super.getViewManager().getCurrentViewProcesses().length;

Callers

nothing calls this directly

Calls 3

getSenderMethod · 0.45
getSequenceMethod · 0.45
processReplyMethod · 0.45

Tested by

no test coverage detected