protected class ReplicationActionExecutor.ReplicationDefinitionLockExtender extends Object implements TransferCallback, JobLockService.JobLockRefreshCallback
TransferCallback
which periodically renews the
lock held against a ReplicationDefinition
Modifier | Constructor and Description |
---|---|
protected |
ReplicationDefinitionLockExtender(ReplicationDefinition replicationDef) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Give up our lock on the
ReplicationDefinition |
boolean |
isActive()
Job Lock Refresh
|
void |
lockReleased()
Job Lock Service has released us.
|
void |
processEvent(TransferEvent event)
No matter what the event is, refresh
our lock on the
ReplicationDefinition , and
handle a cancel if it was requested. |
protected ReplicationDefinitionLockExtender(ReplicationDefinition replicationDef)
public void processEvent(TransferEvent event)
ReplicationDefinition
, and
handle a cancel if it was requested.processEvent
in interface TransferCallback
event
- TransferEventpublic void close()
ReplicationDefinition
public boolean isActive()
isActive
in interface JobLockService.JobLockRefreshCallback
public void lockReleased()
lockReleased
in interface JobLockService.JobLockRefreshCallback
Copyright © 2005–2017 Alfresco Software. All rights reserved.