closeDrainTimeoutMillis

How long, in milliseconds, Tracker.close and closeAndAwait wait for work the tracker already accepted to be stamped and handed to the transport before they give up and release anyway. Defaults to 5 seconds, sized for a shutdown path a user is waiting on: long enough for a queue of stamped events and one transport flush (both local), short enough that a wedged transport cannot hold an app's teardown. A drain cut short is reported through logger.

This bounds the shutdown, once, however many callers wait on it. The timeoutMillis of a closeAndAwait call bounds only that caller's wait and may be shorter. A value of zero or less does not wait at all.

It is a bound, not a real-time guarantee: a synchronous Transport.flush cannot be interrupted, so a transport whose flush blocks holds the shutdown for as long as it blocks.