Package com.queue.file.controller
Interface Controller
- All Known Implementing Classes:
ManualController,StableController
public interface Controller
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclearAll()voidvoidvoidclose()intgetQueue()intbooleanisOk()booleanopen()readAll()voidreadCommit(String threadName) voidlongrealignKey(List<Long> keyList, org.h2.mvstore.MVMap<Long, String> dataMap) voidvoidremoveReadBufferOne(String threadName) booleanvalidate()voidwrite(FileQueueData data) voidvoidvoidwriteQueueData(List<FileQueueData> fileQueueDataList)
-
Method Details
-
validate
boolean validate() -
open
boolean open() -
close
void close() -
realignKey
-
realignData
- Throws:
InitializeException
-
write
- Throws:
QueueWriteException
-
write
- Throws:
QueueWriteException
-
write
- Throws:
QueueWriteException
-
writeQueueData
- Throws:
QueueWriteException
-
read
- Throws:
QueueReadException
-
read
- Throws:
QueueReadException
-
readAll
-
removeOne
- Throws:
QueueReadException
-
removeReadBufferOne
- Throws:
QueueReadException
-
clearData
- Throws:
QueueReadException
-
clearReadBuffer
- Throws:
QueueReadException
-
clearAll
- Throws:
QueueReadException
-
readCommit
- Throws:
QueueReadException
-
isOk
boolean isOk() -
getQueueSize
int getQueueSize() -
getMaxSize
int getMaxSize() -
getQueue
String getQueue() -
getQueueName
String getQueueName() -
getQueuePath
String getQueuePath()
-