public static class CreateGroupCursorDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateGroupCursorDetails |
build() |
CreateGroupCursorDetails.Builder |
commitOnGet(Boolean commitOnGet)
When using consumer-groups, the default commit-on-get behaviour can be overriden by
setting this value to false.
|
CreateGroupCursorDetails.Builder |
copy(CreateGroupCursorDetails model) |
CreateGroupCursorDetails.Builder |
groupName(String groupName)
Name of the consumer group.
|
CreateGroupCursorDetails.Builder |
instanceName(String instanceName)
A unique identifier for the instance joining the consumer group.
|
CreateGroupCursorDetails.Builder |
time(Date time)
The time to consume from if type is AT_TIME.
|
CreateGroupCursorDetails.Builder |
timeoutInMs(Integer timeoutInMs)
The amount of a consumer instance inactivity time, before partition reservations are
released.
|
CreateGroupCursorDetails.Builder |
type(CreateGroupCursorDetails.Type type)
The type of the cursor.
|
public CreateGroupCursorDetails.Builder type(CreateGroupCursorDetails.Type type)
The type of the cursor. This value is only used when the group is created.
type
- the value to setpublic CreateGroupCursorDetails.Builder time(Date time)
The time to consume from if type is AT_TIME.
time
- the value to setpublic CreateGroupCursorDetails.Builder groupName(String groupName)
Name of the consumer group.
groupName
- the value to setpublic CreateGroupCursorDetails.Builder instanceName(String instanceName)
A unique identifier for the instance joining the consumer group. If an instanceName is not provided, a UUID will be generated and used.
instanceName
- the value to setpublic CreateGroupCursorDetails.Builder timeoutInMs(Integer timeoutInMs)
The amount of a consumer instance inactivity time, before partition reservations are released.
timeoutInMs
- the value to setpublic CreateGroupCursorDetails.Builder commitOnGet(Boolean commitOnGet)
When using consumer-groups, the default commit-on-get behaviour can be overriden by setting this value to false. If disabled, a consumer must manually commit their cursors.
commitOnGet
- the value to setpublic CreateGroupCursorDetails build()
public CreateGroupCursorDetails.Builder copy(CreateGroupCursorDetails model)
Copyright © 2016–2024. All rights reserved.