doc: update javadocs in DelayedClientTransport2. (#2522)

Resolves #2521
This commit is contained in:
Kun Zhang 2016-12-15 13:07:19 -08:00 committed by GitHub
parent f394a93ddb
commit 1ba66d38d9
1 changed files with 4 additions and 5 deletions

View File

@ -211,9 +211,9 @@ final class DelayedClientTransport2 implements ManagedClientTransport {
} }
/** /**
* Prevents creating any new streams until {@link #setTransport} is called. Buffered streams are * Prevents creating any new streams. Buffered streams are not failed and may still proceed
* not failed, so if {@link #shutdown} is called when {@link #setTransport} has not been called, * when {@link #reprocess} is called. The delayed transport will be terminated when there is no
* you still need to call {@link #setTransport} to make this transport terminated. * more buffered streams.
*/ */
@Override @Override
public final void shutdown() { public final void shutdown() {
@ -275,8 +275,7 @@ final class DelayedClientTransport2 implements ManagedClientTransport {
* streams will be served by the latest picker (if a same picker is given more than once, they are * streams will be served by the latest picker (if a same picker is given more than once, they are
* considered different pickers) as soon as possible. * considered different pickers) as soon as possible.
* *
* <p>This method <strong>must not</strong> be called concurrently, with itself or with {@link * <p>This method <strong>must not</strong> be called concurrently with itself.
* #setTransportSupplier}/{@link #setTransport}.
*/ */
final void reprocess(SubchannelPicker picker) { final void reprocess(SubchannelPicker picker) {
ArrayList<PendingStream> toProcess; ArrayList<PendingStream> toProcess;