public interface DBQueueInterface
The database queue interface provides methods for the queueing of file load and save requests for the multi-threaded background load/save class.
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFileRequest(FileRequest fileReq)
Delete a file request from the pending queue.
|
int |
loadFileRequests(int seqNo,
int reqType,
FileRequestQueue reqQueue,
int recLimit)
Load a block of file requests from the database into the specified queue.
|
MultipleFileRequest |
loadTransactionRequest(MultipleFileRequest tranReq)
Load a transaction request from the queue.
|
FileRequestQueue |
performQueueCleanup(java.io.File tempDir,
java.lang.String tempDirPrefix,
java.lang.String tempFilePrefix,
java.lang.String jarFilePrefix)
Perform a queue cleanup deleting temporary cache files that do not have an associated save or transaction
request.
|
void |
queueFileRequest(FileRequest fileReq)
Queue a file request.
|
void queueFileRequest(FileRequest fileReq) throws DBException
fileReq - FileRequestDBExceptionFileRequestQueue performQueueCleanup(java.io.File tempDir, java.lang.String tempDirPrefix, java.lang.String tempFilePrefix, java.lang.String jarFilePrefix) throws DBException
tempDir - FiletempDirPrefix - StringtempFilePrefix - StringjarFilePrefix - StringDBExceptionvoid deleteFileRequest(FileRequest fileReq) throws DBException
fileReq - FileRequestDBExceptionint loadFileRequests(int seqNo,
int reqType,
FileRequestQueue reqQueue,
int recLimit)
throws DBException
seqNo - intreqType - intreqQueue - FileRequestQueuerecLimit - intDBExceptionMultipleFileRequest loadTransactionRequest(MultipleFileRequest tranReq) throws DBException
tranReq - MultipleFileRequestDBExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.