abstract class OutputDirectoryImpl extends OutputDirectory
- Alphabetic
- By Inheritance
- OutputDirectoryImpl
- OutputDirectory
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new OutputDirectoryImpl()
Abstract Value Members
- abstract def delete(name: String)(implicit ec: ExecutionContext): Future[Unit]
Deletes the given file.
Deletes the given file. Fails if it does not exist.
- abstract def listFiles()(implicit ec: ExecutionContext): Future[List[String]]
Lists all the files in the directory.
- abstract def readFull(name: String)(implicit ec: ExecutionContext): Future[ByteBuffer]
Fully read the given file into a new ByteBuffer.
- abstract def writeFull(name: String, buf: ByteBuffer)(implicit ec: ExecutionContext): Future[Unit]
Writes to the given file.
Writes to the given file.
Writing should only result in a file write if the contents of the file actually changed. Further, if the underlying filesystem allows it, the file should be written atomically.
Calling this method is equivalent to calling
writeFull(name, buf, skipContentCheck = false)
.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeFull(name: String, buf: ByteBuffer, skipContentCheck: Boolean)(implicit ec: ExecutionContext): Future[Unit]
Writes to the given file.
Writes to the given file.
- If
skipContentCheck
isfalse
, writing should only result in a file write if the contents of the file actually changed. - If it is
true
, the implementation is encouraged not to check for the file contents, and always write it; however, this not mandatory for backward compatibility reasons.
If the underlying filesystem allows it, the file should be written atomically.
The default implementation of this method calls
writeFull
without theskipContentCheck
, which is suboptimal. Therefore, it is encouraged to override it. - If