/** * This is the response from the accepted responder. */ protected void incomingNetWriteReply(boolean netWriteSuccessful,Exception e, boolean exe) { synchronized (this) { this.remoteException = e; this.netWriteSucceeded = netWriteSuccessful; computeRemainingTimeout(); signalDone(); } }
/** * This is the response from the accepted responder. */ protected void incomingNetWriteReply(boolean netWriteSuccessful,Exception e, boolean exe) { synchronized (this) { //logFine("In incomingReply, blob is ", blob); this.remoteException = e; this.netWriteSucceeded = netWriteSuccessful; // this.cacheWriterException = exe; computeRemainingTimeout(); signalDone(); } }
public void memberDeparted(final InternalDistributedMember id, final boolean crashed) { synchronized (membersLock) { pendingResponders.remove(id); } synchronized (this) { if (id.equals(selectedNode) && (this.requestInProgress) && (this.remoteGetInProgress)) { selectedNode = null; selectedNodeDead = true; computeRemainingTimeout(); if (logger.isDebugEnabled()) { logger.debug("{}: processing loss of member {}", this, id); } this.lastNotifySpot = 3; notifyAll(); // signal the waiter; we are not done; but we need the waiter to call sendNetSearchRequest } if(responseQueue != null) responseQueue.remove(id); checkIfDone(); } }
public void memberDeparted(final InternalDistributedMember id, final boolean crashed) { synchronized (membersLock) { pendingResponders.remove(id); } synchronized (this) { if (id.equals(selectedNode) && (this.requestInProgress) && (this.remoteGetInProgress)) { selectedNode = null; selectedNodeDead = true; computeRemainingTimeout(); logFine(this + ": processing loss of member ", id); this.lastNotifySpot = 3; notifyAll(); // signal the waiter; we are not done; but we need the waiter to call sendNetSearchRequest } if(responseQueue != null) responseQueue.remove(id); checkIfDone(); } // this.advisor.getLogWriter().info( // "DEBUG: netsearch id " + this.processorId + " received memberDeparted event for " + id); }
/** * This is the response from the accepted responder. * Grab the result and store it.Unlike 2.0 where the * the response was a 2 phase operation, here it is a * single phase operation. */ protected void incomingNetLoadReply(Object obj, long lastModifiedTime, Object callbackArg, Exception e, boolean serialized, boolean requestorTimedOut) { synchronized (this) { if (requestorTimedOut) { signalTimedOut(); return; } this.result = obj; this.lastModified = lastModifiedTime; this.remoteException = e; this.aCallbackArgument = callbackArg; computeRemainingTimeout(); this.isSerialized = serialized; signalDone(); } } @SuppressWarnings("hiding")
/** * This is the response from the accepted responder. * Grab the result and store it.Unlike 2.0 where the * the response was a 2 phase operation, here it is a * single phase operation. */ protected void incomingNetLoadReply(Object obj, long lastModifiedTime, Object callbackArg, Exception e, boolean serialized, boolean requestorTimedOut) { synchronized (this) { if (requestorTimedOut) { signalTimedOut(); return; } this.result = obj; this.lastModified = lastModifiedTime; this.remoteException = e; this.aCallbackArgument = callbackArg; computeRemainingTimeout(); this.isSerialized = serialized; signalDone(); } } @SuppressWarnings("hiding")
computeRemainingTimeout(); if (value != null || authorative) { synchronized (this) {
signalTimedOut(); computeRemainingTimeout(); if (value != null || authorative) { synchronized (this) {