ReplicaHandler (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.datanode, class: ReplicaHandler

Package org.apache.hadoop.hdfs.server.datanode

# Class ReplicaHandler

java.lang.Object
org.apache.hadoop.hdfs.server.datanode.ReplicaHandler

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

public class ReplicaHandler extends Object implements Closeable
This class includes a replica being actively written and the reference to the fs volume where this replica is located.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ReplicaHandler(ReplicaInPipeline replica, FsVolumeReference reference)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `ReplicaInPipeline`
  `getReplica()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ReplicaHandler

    public ReplicaHandler(ReplicaInPipeline replica, FsVolumeReference reference)

- ## Method Details

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Throws:
      `IOException`

  - ### getReplica

    public ReplicaInPipeline getReplica()