Class Operation.Builder (3.8.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
TypeDescription
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
NameDescription
firstboolean
Returns
TypeDescription
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
NameDescription
idString
Returns
TypeDescription
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
NameDescription
lastboolean
Returns
TypeDescription
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
NameDescription
producerString
Returns
TypeDescription
Operation.Builder