public interface TransferListener extends EventListener
For a single-file transfer, notifications will come in the following order: SESSION_START, BANDWIDTH_MEASUREMENT (if enabled), FILE_START, PROGRESS, ..., PROGRESS, FILE_STOP/FILE_ERROR, SESSION_STOP/SESSION_ERROR. A RATE_MODIFICATION notification may come at any time between SESSION_START and SESSION_STOP.
For a multi-file transfer, multiple FILE_START/STOP notifications will occur. Also note that multiple FILE_STARTs (for different files) may come without a FILE_STOP, and vice versa. You can use file names (paths) to match a FILE_START with its corresponding FILE_STOP.
Modifier and Type | Method and Description |
---|---|
void |
fileSessionEvent(TransferEvent event,
SessionStats sessionStats,
FileInfo fileInfo)
Callback method for file transfer events.
|
void fileSessionEvent(TransferEvent event, SessionStats sessionStats, FileInfo fileInfo)
event
- type of eventsessionStats
- statistics of the current sessionfileInfo
- stats of the last transferred file in this session (if available)Copyright © 2015 Aspera Inc.. All rights reserved.