Package com.oracle.bmc.streaming.model
Class CreateGroupCursorDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.streaming.model.CreateGroupCursorDetails.Builder
-
- Enclosing class:
- CreateGroupCursorDetails
public static class CreateGroupCursorDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
type
public CreateGroupCursorDetails.Builder type(CreateGroupCursorDetails.Type type)
The type of the cursor.This value is only used when the group is created.
- Parameters:
type
- the value to set- Returns:
- this builder
-
time
public CreateGroupCursorDetails.Builder time(Date time)
The time to consume from if type is AT_TIME.- Parameters:
time
- the value to set- Returns:
- this builder
-
groupName
public CreateGroupCursorDetails.Builder groupName(String groupName)
Name of the consumer group.- Parameters:
groupName
- the value to set- Returns:
- this builder
-
instanceName
public 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.
- Parameters:
instanceName
- the value to set- Returns:
- this builder
-
timeoutInMs
public CreateGroupCursorDetails.Builder timeoutInMs(Integer timeoutInMs)
The amount of a consumer instance inactivity time, before partition reservations are released.- Parameters:
timeoutInMs
- the value to set- Returns:
- this builder
-
commitOnGet
public 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.
- Parameters:
commitOnGet
- the value to set- Returns:
- this builder
-
build
public CreateGroupCursorDetails build()
-
copy
public CreateGroupCursorDetails.Builder copy(CreateGroupCursorDetails model)
-
-