Class Operation.Builder (3.21.0)

public static final class Operation.Builder

A builder for Operation objects.

Inheritance

java.lang.Object > Operation.Builder

Methods

build()

public Operation build()

Creates an Operation object for this builder.

Returns
Type Description
Operation

setFirst(boolean first)

public Operation.Builder setFirst(boolean first)

Sets whether the corresponding entry is the first log entry in the operation. If not set, false is used.

Parameter
Name Description
first boolean
Returns
Type Description
Operation.Builder

setId(String id)

public Operation.Builder setId(String id)

Sets the operation identifier. Log entries with the same identifier are assumed to be part of the same operation. The combination of id and producer must be globally unique.

Parameter
Name Description
id String
Returns
Type Description
Operation.Builder

setLast(boolean last)

public Operation.Builder setLast(boolean last)

Sets whether the corresponding entry is the last log entry in the operation. If not set, false is used.

Parameter
Name Description
last boolean
Returns
Type Description
Operation.Builder

setProducer(String producer)

public Operation.Builder setProducer(String producer)

Sets an arbitrary producer identifier. The combination of producer and id must be globally unique. Examples: MyDivision.MyBigCompany.com, github.com/MyProject/MyApplication.

Parameter
Name Description
producer String
Returns
Type Description
Operation.Builder