Class Operation (3.9.0)

public final class Operation implements Serializable

Additional information about a potentially long-running operation with which a log entry is associated. See Also: Log Entry Operation

Inheritance

Object > Operation

Implements

Serializable

Static Methods

newBuilder(String id, String producer)

public static Operation.Builder newBuilder(String id, String producer)

Returns a builder for Operation objects given the operation and producer identifiers. The combination of producer and id must be globally unique.

Parameters
NameDescription
idString
producerString
Returns
TypeDescription
Operation.Builder

of(String id, String producer)

public static Operation of(String id, String producer)

Returns a Operation object given the operation and producer identifiers. The combination of producer and id must be globally unique.

Parameters
NameDescription
idString
producerString
Returns
TypeDescription
Operation

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

first()

public boolean first()

Returns true if the corresponding entry is the first log entry in the operation, false otherwise.

Returns
TypeDescription
boolean

getId()

public String getId()

Returns the operation identifier. Log entries with the same identifier are assumed to be part of the same operation. The combination of this value and #getProducer() must be globally unique.

Returns
TypeDescription
String

getProducer()

public String getProducer()

Returns an arbitrary producer identifier. The combination of this value and #getId() must be globally unique. Examples: MyDivision.MyBigCompany.com, github.com/MyProject/MyApplication.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

last()

public boolean last()

Returns true if the corresponding entry is the last log entry in the operation, false otherwise.

Returns
TypeDescription
boolean

toBuilder()

public Operation.Builder toBuilder()

Returns a Builder for this operation.

Returns
TypeDescription
Operation.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides