Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/AsyncEndPoint.java @ 952:669769bcdf5c
simplify AsyncEndPoint
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Oct 2016 19:47:45 -0600 |
parents | 89fe80dfab2c |
children | 1094975d013b |
comparison
equal
deleted
inserted
replaced
951:e542a9cc75ef | 952:669769bcdf5c |
---|---|
27 * | 27 * |
28 */ | 28 */ |
29 public void dispatch(); | 29 public void dispatch(); |
30 | 30 |
31 /* ------------------------------------------------------------ */ | 31 /* ------------------------------------------------------------ */ |
32 /** Schedule a write dispatch. | |
33 * Set the endpoint to not be writable and schedule a dispatch when | |
34 * it becomes writable. | |
35 */ | |
36 public void scheduleWrite(); | |
37 | |
38 /* ------------------------------------------------------------ */ | |
39 /** Callback when idle. | 32 /** Callback when idle. |
40 * <p>An endpoint is idle if there has been no IO activity for | 33 * <p>An endpoint is idle if there has been no IO activity for |
41 * {@link #getMaxIdleTime()} and {@link #isCheckForIdle()} is true. | 34 * {@link #getMaxIdleTime()} and {@link #isCheckForIdle()} is true. |
42 * @param idleForMs TODO | 35 * @param idleForMs TODO |
43 */ | 36 */ |
44 public void onIdleExpired(long idleForMs); | 37 // public void onIdleExpired(long idleForMs); |
45 | 38 |
46 /* ------------------------------------------------------------ */ | 39 /* ------------------------------------------------------------ */ |
47 /** Set if the endpoint should be checked for idleness | 40 /** Set if the endpoint should be checked for idleness |
48 */ | 41 */ |
49 public void setCheckForIdle(boolean check); | 42 public void setCheckForIdle(boolean check); |
50 | 43 |
51 /* ------------------------------------------------------------ */ | 44 /* ------------------------------------------------------------ */ |
52 /** Get if the endpoint should be checked for idleness | |
53 */ | |
54 public boolean isCheckForIdle(); | |
55 | |
56 | |
57 /* ------------------------------------------------------------ */ | |
58 public boolean isWritable(); | |
59 | |
60 /* ------------------------------------------------------------ */ | |
61 /** | 45 /** |
62 * @return True if IO has been successfully performed since the last call to {@link #hasProgressed()} | 46 * @return True if IO has been successfully performed since the last call to {@link #hasProgressed()} |
63 */ | 47 */ |
64 public boolean hasProgressed(); | 48 public boolean hasProgressed(); |
65 } | 49 } |