Class NoLimitStrategy
- java.lang.Object
-
- io.gridgo.connector.file.support.limit.NoLimitStrategy
-
- All Implemented Interfaces:
FileLimitStrategy
public class NoLimitStrategy extends java.lang.Object implements FileLimitStrategy
-
-
Constructor Summary
Constructors Constructor Description NoLimitStrategy(java.lang.String path, java.lang.String mode, boolean deleteOnStartup, boolean deleteOnShutdown, boolean override)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.channels.FileChannelgetFileChannel()voidputBytes(long bytes)voidreadWith(RandomAccessFileHandler consumer)voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start() throws java.io.IOException- Specified by:
startin interfaceFileLimitStrategy- Throws:
java.io.IOException
-
stop
public void stop() throws java.io.IOException- Specified by:
stopin interfaceFileLimitStrategy- Throws:
java.io.IOException
-
putBytes
public void putBytes(long bytes) throws java.io.IOException- Specified by:
putBytesin interfaceFileLimitStrategy- Throws:
java.io.IOException
-
readWith
public void readWith(RandomAccessFileHandler consumer) throws java.io.IOException
- Specified by:
readWithin interfaceFileLimitStrategy- Throws:
java.io.IOException
-
getFileChannel
public java.nio.channels.FileChannel getFileChannel()
- Specified by:
getFileChannelin interfaceFileLimitStrategy
-
-