Lines Matching refs:newStatus
191 * @param newStatus
194 boolean setStatus(int newStatus)
201 if (oldStatus != newStatus)
207 if (newStatus==STATUS_SENDING_REQUEST)
215 switch (newStatus)
222 set = _status.compareAndSet(oldStatus,newStatus);
225 set = setStatusExpired(newStatus,oldStatus);
230 switch (newStatus)
235 set = _status.compareAndSet(oldStatus,newStatus);
238 set = setStatusExpired(newStatus,oldStatus);
243 switch (newStatus)
248 set = _status.compareAndSet(oldStatus,newStatus);
251 set = setStatusExpired(newStatus,oldStatus);
256 switch (newStatus)
259 if (set = _status.compareAndSet(oldStatus,newStatus))
264 set = _status.compareAndSet(oldStatus,newStatus);
267 set = setStatusExpired(newStatus,oldStatus);
272 switch (newStatus)
277 set = _status.compareAndSet(oldStatus,newStatus);
280 set = setStatusExpired(newStatus,oldStatus);
285 switch (newStatus)
288 if (set = _status.compareAndSet(oldStatus,newStatus))
293 set = _status.compareAndSet(oldStatus,newStatus);
296 set = setStatusExpired(newStatus,oldStatus);
301 switch (newStatus)
304 if (set = _status.compareAndSet(oldStatus,newStatus))
309 set = _status.compareAndSet(oldStatus,newStatus);
312 set = setStatusExpired(newStatus,oldStatus);
317 switch (newStatus)
322 set = _status.compareAndSet(oldStatus,newStatus);
332 switch (newStatus)
336 if (set = _status.compareAndSet(oldStatus,newStatus))
348 switch (newStatus)
351 set = _status.compareAndSet(oldStatus,newStatus);
366 throw new AssertionError(oldStatus + " => " + newStatus);
370 throw new IllegalStateException(toState(oldStatus) + " => " + toState(newStatus));
371 LOG.debug("setStatus {} {}",newStatus,this);
380 private boolean setStatusExpired(int newStatus, int oldStatus)
383 if (set = _status.compareAndSet(oldStatus,newStatus))