Module org.elasticsearch.server
Package org.elasticsearch.cluster
Record Class RepositoryCleanupInProgress.Entry
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.RepositoryCleanupInProgress.Entry
- All Implemented Interfaces:
Writeable,RepositoryOperation
- Enclosing class:
RepositoryCleanupInProgress
public static record RepositoryCleanupInProgress.Entry(String repository, long repositoryStateId)
extends Record
implements Writeable, RepositoryOperation
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.readFrom(StreamInput in) Returns the value of therepositoryrecord component.longReturns the value of therepositoryStateIdrecord component.final StringtoString()Returns a string representation of this record class.voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
repository- the value for therepositoryrecord componentrepositoryStateId- the value for therepositoryStateIdrecord component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
repositoryStateId
public long repositoryStateId()Returns the value of therepositoryStateIdrecord component.- Specified by:
repositoryStateIdin interfaceRepositoryOperation- Returns:
- the value of the
repositoryStateIdrecord component
-
repository
Returns the value of therepositoryrecord component.- Specified by:
repositoryin interfaceRepositoryOperation- Returns:
- the value of the
repositoryrecord component
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
-