public class EncryptedHintsWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.channels.FileChannel |
channel |
protected java.util.zip.CRC32 |
globalCRC |
| Modifier | Constructor and Description |
|---|---|
protected |
EncryptedHintsWriter(java.io.File directory,
org.apache.cassandra.hints.HintsDescriptor descriptor,
java.io.File file,
java.nio.channels.FileChannel channel,
int fd,
java.util.zip.CRC32 globalCRC) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fsync() |
protected void |
writeBuffer(java.nio.ByteBuffer input)
Writes byte buffer into the file channel.
|
protected final java.nio.channels.FileChannel channel
protected final java.util.zip.CRC32 globalCRC
protected EncryptedHintsWriter(java.io.File directory,
org.apache.cassandra.hints.HintsDescriptor descriptor,
java.io.File file,
java.nio.channels.FileChannel channel,
int fd,
java.util.zip.CRC32 globalCRC)
protected void writeBuffer(java.nio.ByteBuffer input)
throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseablepublic void fsync()
Copyright © 2018 The Apache Software Foundation