Package io.activej.async.file
Class ExecutorAsyncFileService
- java.lang.Object
-
- io.activej.async.file.ExecutorAsyncFileService
-
- All Implemented Interfaces:
AsyncFileService
public final class ExecutorAsyncFileService extends Object implements AsyncFileService
-
-
Constructor Summary
Constructors Constructor Description ExecutorAsyncFileService(@NotNull Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<Integer>read(FileChannel channel, long position, byte[] array, int offset, int size)Promise<Integer>write(FileChannel channel, long position, byte[] array, int offset, int size)
-
-
-
Constructor Detail
-
ExecutorAsyncFileService
public ExecutorAsyncFileService(@NotNull @NotNull Executor executor)
-
-
Method Detail
-
read
public Promise<Integer> read(FileChannel channel, long position, byte[] array, int offset, int size)
- Specified by:
readin interfaceAsyncFileService
-
write
public Promise<Integer> write(FileChannel channel, long position, byte[] array, int offset, int size)
- Specified by:
writein interfaceAsyncFileService
-
-