|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ResumableAsyncHandler.ResumableProcessor
An interface to implement in order to manage the way the incomplete file management are handled.
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Long> |
load()
Load the Map in memory, contains information about the transferred bytes. |
void |
put(java.lang.String key,
long transferredBytes)
Associate a key with the number of bytes sucessfully transferred. |
void |
remove(java.lang.String key)
Remove the key associate value. |
void |
save(java.util.Map<java.lang.String,java.lang.Long> map)
Save the current Map instance which contains information about the current transfer state. |
| Method Detail |
|---|
void put(java.lang.String key,
long transferredBytes)
key - a key. The recommended way is to use an url.transferredBytes - The number of bytes sucessfully transferred.void remove(java.lang.String key)
key - key from which the value will be discartedvoid save(java.util.Map<java.lang.String,java.lang.Long> map)
Map instance which contains information about the current transfer state.
This method *only* invoked when the JVM is shutting down.
map - java.util.Map<java.lang.String,java.lang.Long> load()
Map in memory, contains information about the transferred bytes.
Map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||