Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/AsyncContinuation.java @ 922:03f39c8abd6b
remove isResumed()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 09 Oct 2016 18:15:24 -0600 |
parents | a5af9ee7cf91 |
children | 52d8b5c29d8e |
comparison
equal
deleted
inserted
replaced
921:a5af9ee7cf91 | 922:03f39c8abd6b |
---|---|
80 private List<ContinuationListener> _continuationListeners; | 80 private List<ContinuationListener> _continuationListeners; |
81 | 81 |
82 /* ------------------------------------------------------------ */ | 82 /* ------------------------------------------------------------ */ |
83 private int _state; | 83 private int _state; |
84 private boolean _initial; | 84 private boolean _initial; |
85 private boolean _resumed; | |
86 private volatile boolean _responseWrapped; | 85 private volatile boolean _responseWrapped; |
87 private long _timeoutMs=DEFAULT_TIMEOUT; | 86 private long _timeoutMs=DEFAULT_TIMEOUT; |
88 private AsyncEventState _event; | 87 private AsyncEventState _event; |
89 private volatile long _expireAt; | 88 private volatile long _expireAt; |
90 private volatile boolean _continuation; | 89 private volatile boolean _continuation; |
258 ((_state==__IDLE)?"IDLE": | 257 ((_state==__IDLE)?"IDLE": |
259 (_state==__DISPATCHED)?"DISPATCHED": | 258 (_state==__DISPATCHED)?"DISPATCHED": |
260 (_state==__UNCOMPLETED)?"UNCOMPLETED": | 259 (_state==__UNCOMPLETED)?"UNCOMPLETED": |
261 (_state==__COMPLETED)?"COMPLETE": | 260 (_state==__COMPLETED)?"COMPLETE": |
262 ("UNKNOWN?"+_state))+ | 261 ("UNKNOWN?"+_state))+ |
263 (_initial?",initial":"")+ | 262 (_initial?",initial":""); |
264 (_resumed?",resumed":""); | |
265 } | 263 } |
266 } | 264 } |
267 | 265 |
268 /* ------------------------------------------------------------ */ | 266 /* ------------------------------------------------------------ */ |
269 /** | 267 /** |
463 throw new IllegalStateException(getStatusString()); | 461 throw new IllegalStateException(getStatusString()); |
464 default: | 462 default: |
465 _state=__IDLE; | 463 _state=__IDLE; |
466 } | 464 } |
467 _initial = true; | 465 _initial = true; |
468 _resumed=false; | |
469 _responseWrapped=false; | 466 _responseWrapped=false; |
470 cancelTimeout(); | 467 cancelTimeout(); |
471 _timeoutMs=DEFAULT_TIMEOUT; | 468 _timeoutMs=DEFAULT_TIMEOUT; |
472 _continuationListeners=null; | 469 _continuationListeners=null; |
473 } | 470 } |
660 if (event!=null) | 657 if (event!=null) |
661 return ((Context)event.getServletContext()).getContextHandler(); | 658 return ((Context)event.getServletContext()).getContextHandler(); |
662 return null; | 659 return null; |
663 } | 660 } |
664 | 661 |
665 | |
666 /* ------------------------------------------------------------ */ | |
667 /** | |
668 * @see Continuation#isResumed() | |
669 */ | |
670 public boolean isResumed() | |
671 { | |
672 synchronized (this) | |
673 { | |
674 return _resumed; | |
675 } | |
676 } | |
677 | 662 |
678 /* ------------------------------------------------------------ */ | 663 /* ------------------------------------------------------------ */ |
679 /** | 664 /** |
680 * @see Continuation#resume() | 665 * @see Continuation#resume() |
681 */ | 666 */ |