Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejava
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

...