update javadoc of input state methods

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
This commit is contained in:
Ludovic Orban 2021-09-03 09:59:13 +02:00
parent cd4166ce5b
commit 2231e6496e
1 changed files with 10 additions and 3 deletions

View File

@ -1286,6 +1286,10 @@ public class HttpChannelState
return woken; return woken;
} }
/**
* Called to indicate that some content was produced and is
* ready for consumption.
*/
public void onContentAdded() public void onContentAdded()
{ {
try (AutoLock l = lock()) try (AutoLock l = lock())
@ -1307,6 +1311,9 @@ public class HttpChannelState
} }
} }
/**
* Called to indicate that the content is being consumed.
*/
public void onReadIdle() public void onReadIdle()
{ {
try (AutoLock l = lock()) try (AutoLock l = lock())
@ -1329,9 +1336,9 @@ public class HttpChannelState
} }
/** /**
* Called to indicate that more content may be available, * Called to indicate that no content is currently available,
* but that a handling thread may need to produce (fill/parse) * more content has been demanded and may be available, but
* it. Typically called by the async read success callback. * that a handling thread may need to produce (fill/parse) it.
*/ */
public void onReadUnready() public void onReadUnready()
{ {