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 boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.readFrom
(StreamInput in) Returns the value of therepository
record component.long
Returns the value of therepositoryStateId
record component.final String
toString()
Returns a string representation of this record class.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
Entry
Creates an instance of aEntry
record class.- Parameters:
repository
- the value for therepository
record componentrepositoryStateId
- the value for therepositoryStateId
record component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
repositoryStateId
public long repositoryStateId()Returns the value of therepositoryStateId
record component.- Specified by:
repositoryStateId
in interfaceRepositoryOperation
- Returns:
- the value of the
repositoryStateId
record component
-
repository
Returns the value of therepository
record component.- Specified by:
repository
in interfaceRepositoryOperation
- Returns:
- the value of the
repository
record component
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in 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 '=='.
-