@Generated(value="org.immutables.processor.ProxyProcessor") public final class Metadata extends Object
_Metadata.
Use the builder to create immutable instances:
Metadata.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Builder
Builds instances of type
Metadata. |
| Modifier and Type | Method and Description |
|---|---|
static Metadata.Builder |
builder()
Creates a builder for
Metadata. |
boolean |
equals(Object another)
This instance is equal to all instances of
Metadata that have equal attribute values. |
Long |
getCount()
The number of envelopes held in Log Cache
|
Optional<Long> |
getExpired()
The number of envelopes that have been pruned
|
Long |
getNewestTimestamp()
Newest entry for the source, in nanoseconds since the Unix epoch
|
Long |
getOldestTimestamp()
Oldest entry for the source, in nanoseconds since the Unix epoch
|
int |
hashCode()
Computes a hash code from attributes:
count, expired, newestTimestamp, oldestTimestamp. |
String |
toString()
Prints the immutable value
Metadata with attribute values. |
public Long getCount()
public Long getNewestTimestamp()
public Long getOldestTimestamp()
public boolean equals(Object another)
Metadata that have equal attribute values.public int hashCode()
count, expired, newestTimestamp, oldestTimestamp.public String toString()
Metadata with attribute values.public static Metadata.Builder builder()
Metadata.
Metadata.builder()
.count(Long) // required count
.expired(Long) // optional expired
.newestTimestamp(Long) // required newestTimestamp
.oldestTimestamp(Long) // required oldestTimestamp
.build();
Copyright © 2021. All rights reserved.