THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Many of the Consumer
APIs provide a means for users to express that an operation should adhere to a timeout. This is achieved by including a Duration
object as one of the API method parameters.
Take as an example commitSync()
and commitSync(Duration timeout)
:
Code Block | ||
---|---|---|
| ||
public void commitSync()
public void commitSync(Duration timeout); |
Not all of the APIs support timeouts, but of those that do, the timeout is either required or optional.
...