Class Operation (3.17.2)

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
Name Description
id String
producer String
Returns
Type Description
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
Name Description
id String
producer String
Returns
Type Description
Operation

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

first()

public boolean first()

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

Returns
Type Description
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
Type Description
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
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

last()

public boolean last()

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

Returns
Type Description
boolean

toBuilder()

public Operation.Builder toBuilder()

Returns a Builder for this operation.

Returns
Type Description
Operation.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides