Class BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL.MyCombinedAsyncWriter

java.lang.Object
org.apache.hadoop.hbase.replication.BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL.MyCombinedAsyncWriter
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter, org.apache.hadoop.hbase.wal.WALProvider.WriterBase
Enclosing class:
BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL

private final class BrokenRemoteAsyncFSWALProvider.BrokenRemoteAsyncFSWAL.MyCombinedAsyncWriter extends Object implements org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter
  • Field Details

    • localWriter

      private final org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter localWriter
    • remoteWriter

      private final org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter remoteWriter
  • Constructor Details

    • MyCombinedAsyncWriter

      public MyCombinedAsyncWriter(org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter localWriter, org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter remoteWriter)
  • Method Details

    • getLength

      public long getLength()
      Specified by:
      getLength in interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
    • getSyncedLength

      public long getSyncedLength()
      Specified by:
      getSyncedLength in interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
    • close

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

      public CompletableFuture<Long> sync(boolean forceSync)
      Specified by:
      sync in interface org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter
    • append

      public void append(org.apache.hadoop.hbase.wal.WAL.Entry entry)
      Specified by:
      append in interface org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter