public static interface ResumableAsyncHandler.ResumableProcessor
| Modifier and Type | Method and Description |
|---|---|
Map<String,Long> |
load()
Load the
Map in memory, contains information about the transferred bytes. |
void |
put(String key,
long transferredBytes)
Associate a key with the number of bytes sucessfully transferred.
|
void |
remove(String key)
Remove the key associate value.
|
void |
save(Map<String,Long> map)
Save the current
Map instance which contains information about the current transfer state. |
void put(String key, long transferredBytes)
key - a key. The recommended way is to use an url.transferredBytes - The number of bytes sucessfully transferred.void remove(String key)
key - key from which the value will be discartedvoid save(Map<String,Long> map)
Map instance which contains information about the current transfer state.
This method *only* invoked when the JVM is shutting down.map - Copyright © 2015. All rights reserved.