public static interface

ResumableAsyncHandler.ResumableProcessor

com.ning.http.client.resumable.ResumableAsyncHandler.ResumableProcessor
Known Indirect Subclasses

Class Overview

An interface to implement in order to manage the way the incomplete file management are handled.

Summary

Public Methods
abstract Map<String, Long> load()
Load the Map in memory, contains information about the transferred bytes.
abstract void put(String key, long transferredBytes)
Associate a key with the number of bytes sucessfully transferred.
abstract void remove(String key)
Remove the key associate value.
abstract void save(Map<String, Long> map)
Save the current Map instance which contains information about the current transfer state.

Public Methods

public abstract Map<String, Long> load ()

Load the Map in memory, contains information about the transferred bytes.

Returns
  • Map

public abstract void put (String key, long transferredBytes)

Associate a key with the number of bytes sucessfully transferred.

Parameters
key a key. The recommended way is to use an url.
transferredBytes The number of bytes sucessfully transferred.

public abstract void remove (String key)

Remove the key associate value.

Parameters
key key from which the value will be discarted

public abstract void save (Map<String, Long> map)

Save the current Map instance which contains information about the current transfer state. This method *only* invoked when the JVM is shutting down.