public class TransferEventProcessor extends Object
Modifier and Type | Field and Description |
---|---|
Set<TransferCallback> |
observers |
Constructor and Description |
---|
TransferEventProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(TransferCallback observer) |
void |
begin(String transferId) |
void |
commit() |
void |
committing(long range,
long position) |
void |
deleteObserver(TransferCallback observer) |
void |
end(TransferEndEvent endEvent) |
void |
prepare() |
void |
sendContent(org.alfresco.service.cmr.repository.ContentData data,
long range,
long position) |
void |
sendSnapshot(long range,
long position) |
void |
start() |
void |
writeReport(org.alfresco.service.cmr.repository.NodeRef nodeRef,
TransferEventReport.ReportType reportType,
TransferEvent.TransferState state) |
public Set<TransferCallback> observers
public void addObserver(TransferCallback observer)
public void deleteObserver(TransferCallback observer)
public void begin(String transferId)
public void start()
public void end(TransferEndEvent endEvent)
public void sendContent(org.alfresco.service.cmr.repository.ContentData data, long range, long position)
data
- ContentDatarange
- longposition
- longpublic void sendSnapshot(long range, long position)
range
- longposition
- longpublic void prepare()
public void commit()
public void writeReport(org.alfresco.service.cmr.repository.NodeRef nodeRef, TransferEventReport.ReportType reportType, TransferEvent.TransferState state)
public void committing(long range, long position)
range
- longposition
- longCopyright © 2005–2017 Alfresco Software. All rights reserved.