Mercurial Hosting > luan
comparison src/org/eclipse/jetty/continuation/Continuation.java @ 934:fe461f7cfc8e
simplify AsyncContinuation
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 09 Oct 2016 21:03:00 -0600 |
parents | cd080b7bcf49 |
children | aa7dc1802d29 |
comparison
equal
deleted
inserted
replaced
933:c9513d80f305 | 934:fe461f7cfc8e |
---|---|
153 * @param timeoutMs | 153 * @param timeoutMs |
154 * The time in milliseconds to wait before expiring this | 154 * The time in milliseconds to wait before expiring this |
155 * continuation after a call to {@link #suspend()} or {@link #suspend(ServletResponse)}. | 155 * continuation after a call to {@link #suspend()} or {@link #suspend(ServletResponse)}. |
156 * A timeout of <=0 means the continuation will never expire. | 156 * A timeout of <=0 means the continuation will never expire. |
157 */ | 157 */ |
158 void setTimeout(long timeoutMs); | 158 // void setTimeout(long timeoutMs); |
159 | 159 |
160 /* ------------------------------------------------------------ */ | 160 /* ------------------------------------------------------------ */ |
161 /** | 161 /** |
162 * Suspend the processing of the request and associated | 162 * Suspend the processing of the request and associated |
163 * {@link ServletResponse}. | 163 * {@link ServletResponse}. |
303 * @see #suspend() | 303 * @see #suspend() |
304 * @exception IllegalStateException | 304 * @exception IllegalStateException |
305 * if the request is not suspended. | 305 * if the request is not suspended. |
306 * | 306 * |
307 */ | 307 */ |
308 void complete(); | 308 // void complete(); |
309 | 309 |
310 /* ------------------------------------------------------------ */ | 310 /* ------------------------------------------------------------ */ |
311 /** | 311 /** |
312 * @return true after {@link #suspend()} has been called and before the | 312 * @return true after {@link #suspend()} has been called and before the |
313 * request has been redispatched due to being resumed, completed or | 313 * request has been redispatched due to being resumed, completed or |
314 * timed out. | 314 * timed out. |
315 */ | 315 */ |
316 boolean isSuspended(); | 316 // boolean isSuspended(); |
317 | 317 |
318 /* ------------------------------------------------------------ */ | 318 /* ------------------------------------------------------------ */ |
319 /** | 319 /** |
320 * @return true if the request has been redispatched by a call to | 320 * @return true if the request has been redispatched by a call to |
321 * {@link #resume()}. Returns false after any subsequent call to | 321 * {@link #resume()}. Returns false after any subsequent call to |
350 * a {@link ContinuationListener} to destroy/finish the wrapped response | 350 * a {@link ContinuationListener} to destroy/finish the wrapped response |
351 * during a call to {@link ContinuationListener#onComplete(Continuation)}. | 351 * during a call to {@link ContinuationListener#onComplete(Continuation)}. |
352 * @return True if {@link #suspend(ServletResponse)} has been passed a | 352 * @return True if {@link #suspend(ServletResponse)} has been passed a |
353 * {@link ServletResponseWrapper} instance. | 353 * {@link ServletResponseWrapper} instance. |
354 */ | 354 */ |
355 boolean isResponseWrapped(); | 355 // boolean isResponseWrapped(); |
356 | 356 |
357 | 357 |
358 /* ------------------------------------------------------------ */ | 358 /* ------------------------------------------------------------ */ |
359 /** | 359 /** |
360 * Get the suspended response. | 360 * Get the suspended response. |