public final class Operation extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Operation.Builder
A builder for
Operation objects. |
| Modifier and Type | Method and Description |
|---|---|
static Operation.Builder |
builder(String id,
String producer)
Returns a builder for
Operation objects given the operation and producer identifiers. |
boolean |
equals(Object obj) |
boolean |
first()
Returns
true if the corresponding entry is the first log entry in the operation,
false otherwise. |
int |
hashCode() |
String |
id()
Returns the operation identifier.
|
boolean |
last()
Returns
true if the corresponding entry is the last log entry in the operation,
false otherwise. |
static Operation |
of(String id,
String producer)
Returns a
Operation object given the operation and producer identifiers. |
String |
producer()
Returns an arbitrary producer identifier.
|
Operation.Builder |
toBuilder()
Returns a
Builder for this operation. |
String |
toString() |
public String id()
producer() must be globally
unique.public String producer()
id()
must be globally unique. Examples: MyDivision.MyBigCompany.com,
github.com/MyProject/MyApplication.public boolean first()
true if the corresponding entry is the first log entry in the operation,
false otherwise.public boolean last()
true if the corresponding entry is the last log entry in the operation,
false otherwise.public Operation.Builder toBuilder()
Builder for this operation.public static Operation.Builder builder(String id, String producer)
Operation objects given the operation and producer identifiers.
The combination of producer and id must be globally unique.Copyright © 2016 Google. All rights reserved.