comparison src/org/eclipse/jetty/server/AsyncContinuation.java @ 921:a5af9ee7cf91

remove isExpired()
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Oct 2016 18:09:50 -0600
parents 3268ddf919d4
children 03f39c8abd6b
comparison
equal deleted inserted replaced
920:3268ddf919d4 921:a5af9ee7cf91
81 81
82 /* ------------------------------------------------------------ */ 82 /* ------------------------------------------------------------ */
83 private int _state; 83 private int _state;
84 private boolean _initial; 84 private boolean _initial;
85 private boolean _resumed; 85 private boolean _resumed;
86 private boolean _expired;
87 private volatile boolean _responseWrapped; 86 private volatile boolean _responseWrapped;
88 private long _timeoutMs=DEFAULT_TIMEOUT; 87 private long _timeoutMs=DEFAULT_TIMEOUT;
89 private AsyncEventState _event; 88 private AsyncEventState _event;
90 private volatile long _expireAt; 89 private volatile long _expireAt;
91 private volatile boolean _continuation; 90 private volatile boolean _continuation;
260 (_state==__DISPATCHED)?"DISPATCHED": 259 (_state==__DISPATCHED)?"DISPATCHED":
261 (_state==__UNCOMPLETED)?"UNCOMPLETED": 260 (_state==__UNCOMPLETED)?"UNCOMPLETED":
262 (_state==__COMPLETED)?"COMPLETE": 261 (_state==__COMPLETED)?"COMPLETE":
263 ("UNKNOWN?"+_state))+ 262 ("UNKNOWN?"+_state))+
264 (_initial?",initial":"")+ 263 (_initial?",initial":"")+
265 (_resumed?",resumed":"")+ 264 (_resumed?",resumed":"");
266 (_expired?",expired":"");
267 } 265 }
268 } 266 }
269 267
270 /* ------------------------------------------------------------ */ 268 /* ------------------------------------------------------------ */
271 /** 269 /**
466 default: 464 default:
467 _state=__IDLE; 465 _state=__IDLE;
468 } 466 }
469 _initial = true; 467 _initial = true;
470 _resumed=false; 468 _resumed=false;
471 _expired=false;
472 _responseWrapped=false; 469 _responseWrapped=false;
473 cancelTimeout(); 470 cancelTimeout();
474 _timeoutMs=DEFAULT_TIMEOUT; 471 _timeoutMs=DEFAULT_TIMEOUT;
475 _continuationListeners=null; 472 _continuationListeners=null;
476 } 473 }
673 public boolean isResumed() 670 public boolean isResumed()
674 { 671 {
675 synchronized (this) 672 synchronized (this)
676 { 673 {
677 return _resumed; 674 return _resumed;
678 }
679 }
680 /* ------------------------------------------------------------ */
681 /**
682 * @see Continuation#isExpired()
683 */
684 public boolean isExpired()
685 {
686 synchronized (this)
687 {
688 return _expired;
689 } 675 }
690 } 676 }
691 677
692 /* ------------------------------------------------------------ */ 678 /* ------------------------------------------------------------ */
693 /** 679 /**