public class OrphanReaper
extends java.lang.Object
| Constructor and Description |
|---|
OrphanReaper()
Create one with default parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
This is really for debugging and testing.
|
void |
doBatch()
Do a batch of cleanup work.
|
void |
execute() |
long |
getLockRefreshTime() |
long |
getLockTimeOut() |
long |
getTimeToLive() |
boolean |
isActive()
See if the reaper is actively reaping.
|
void |
setActiveBaseSleep(long interval)
Set the active base sleep interval.
|
void |
setBatchSize(int size)
Set the batch size.
|
void |
setJobLockService(JobLockService jobLockService) |
void |
setLockRefreshTime(long lockRefreshTime) |
void |
setLockTimeOut(long lockTimeOut) |
void |
setTransactionService(TransactionService transactionService)
Set the transaction service.
|
void |
shutDown()
Shutdown the reaper.
|
public void execute()
public void setActiveBaseSleep(long interval)
interval - The interval to set in ms.public void setBatchSize(int size)
size - The batch size to set.public void setTransactionService(TransactionService transactionService)
transactionService - The service.public void setJobLockService(JobLockService jobLockService)
jobLockService - service used to ensure that reaper runs are not duplicatedpublic void setLockRefreshTime(long lockRefreshTime)
public long getLockRefreshTime()
public long getTimeToLive()
public void setLockTimeOut(long lockTimeOut)
public long getLockTimeOut()
public void shutDown()
public void activate()
public boolean isActive()
public void doBatch()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.