Class AbstractController
java.lang.Object
com.queue.file.controller.extention.AbstractController
- All Implemented Interfaces:
ControllerEx
- Direct Known Subclasses:
BulkController,CustomController,EffectiveController,StableController
-
Field Summary
FieldsFields inherited from interface com.queue.file.controller.extention.ControllerEx
gson -
Constructor Summary
ConstructorsConstructorDescriptionAbstractController(String queue) AbstractController(String queuePath, String queueName) AbstractController(Map<String, Object> config) -
Method Summary
Modifier and TypeMethodDescriptionallData()voidclear()voidclose()voidcommit()intintintintlonglonglongintlonglonggetQUEUE()intlongbooleanbooleanbooleanisOk()booleanopen()voidreadCommit(String threadName) longrealignKey(List<Long> keyList, org.h2.mvstore.MVMap<Long, String> dataMap) removeReadBufferOne(String threadName) abstract FileQueueCustomConfigVovoidsetWaitTime(long waitTime) booleanvalidate()voidwriteQueueData(List<String> storeDataList)
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
AbstractController
-
AbstractController
-
AbstractController
-
-
Method Details
-
validate
public boolean validate()- Specified by:
validatein interfaceControllerEx
-
open
public boolean open()- Specified by:
openin interfaceControllerEx
-
setConfig
-
realignKey
- Specified by:
realignKeyin interfaceControllerEx
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceControllerEx
-
writeQueueData
- Specified by:
writeQueueDatain interfaceControllerEx- Throws:
QueueWriteException
-
read
- Specified by:
readin interfaceControllerEx- Throws:
QueueReadException
-
readCommit
- Specified by:
readCommitin interfaceControllerEx- Throws:
QueueReadException
-
allData
- Specified by:
allDatain interfaceControllerEx
-
allReadBuffer
- Specified by:
allReadBufferin interfaceControllerEx
-
removeOne
- Specified by:
removeOnein interfaceControllerEx- Throws:
QueueReadException
-
removeReadBufferOne
- Specified by:
removeReadBufferOnein interfaceControllerEx- Throws:
QueueReadException
-
clear
- Specified by:
clearin interfaceControllerEx- Throws:
QueueReadException
-
close
public void close()- Specified by:
closein interfaceControllerEx
-
commit
public void commit()- Specified by:
commitin interfaceControllerEx
-
getQueueSize
public int getQueueSize() -
getInputCount
public long getInputCount() -
getOutputCount
public long getOutputCount() -
getLastInTime
public long getLastInTime() -
getLastOutTime
public long getLastOutTime() -
getOpenTime
public long getOpenTime() -
getLIMIT_SIZE
public int getLIMIT_SIZE() -
getQUEUE
-
getQUEUE_NAME
-
getQUEUE_PATH
-
getAutoCommitDelay
public int getAutoCommitDelay() -
getAutoCommitMemory
public int getAutoCommitMemory() -
getBulkSize
public int getBulkSize() -
getCacheSize
public int getCacheSize() -
getWaitTime
public long getWaitTime() -
isBulkCommit
public boolean isBulkCommit() -
isManualCommitMode
public boolean isManualCommitMode() -
setWaitTime
public void setWaitTime(long waitTime)
-