Class CombinedAsyncWriter
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.CombinedWriterBase<WALProvider.AsyncWriter>
org.apache.hadoop.hbase.regionserver.wal.CombinedAsyncWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,WALProvider.AsyncWriter,WALProvider.WriterBase
@Private
public final class CombinedAsyncWriter
extends CombinedWriterBase<WALProvider.AsyncWriter>
implements WALProvider.AsyncWriter
An
WALProvider.AsyncWriter wrapper which writes data to a set of WALProvider.AsyncWriter instances.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.wal.CombinedWriterBase
writers -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCombinedAsyncWriter(org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<WALProvider.AsyncWriter> writers) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic CombinedAsyncWritercreate(WALProvider.AsyncWriter writer, WALProvider.AsyncWriter... writers) sync(boolean forceSync) Methods inherited from class org.apache.hadoop.hbase.regionserver.wal.CombinedWriterBase
close, getLength, getSyncedLengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.wal.WALProvider.WriterBase
getLength, getSyncedLength
-
Constructor Details
-
CombinedAsyncWriter
private CombinedAsyncWriter(org.apache.hbase.thirdparty.com.google.common.collect.ImmutableList<WALProvider.AsyncWriter> writers)
-
-
Method Details
-
append
- Specified by:
appendin interfaceWALProvider.AsyncWriter
-
sync
- Specified by:
syncin interfaceWALProvider.AsyncWriter
-
create
public static CombinedAsyncWriter create(WALProvider.AsyncWriter writer, WALProvider.AsyncWriter... writers)
-