Package io.tus.java.client
Class TusURLMemoryStore
java.lang.Object
io.tus.java.client.TusURLMemoryStore
- All Implemented Interfaces:
TusURLStore
This class is used to map an upload's fingerprint with the corresponding upload URL by storing
the entries in a
The values will only be stored as long as the application is running. This store will not keep the values after your application crashes or restarts.
HashMap. This functionality is used to allow resuming uploads. The
fingerprint is usually retrieved using TusUpload.getFingerprint().
The values will only be stored as long as the application is running. This store will not keep the values after your application crashes or restarts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the corresponding Upload URL to a given fingerprint.voidRemoves the corresponding entry to a fingerprint from theTusURLMemoryStore.voidStores the upload's fingerprint and url.
-
Constructor Details
-
TusURLMemoryStore
public TusURLMemoryStore()
-
-
Method Details
-
set
Stores the upload's fingerprint and url.- Specified by:
setin interfaceTusURLStore- Parameters:
fingerprint- An upload's fingerprint.url- The corresponding upload URL.
-
get
Returns the corresponding Upload URL to a given fingerprint.- Specified by:
getin interfaceTusURLStore- Parameters:
fingerprint- An upload's fingerprint.- Returns:
- The corresponding upload URL.
-
remove
Removes the corresponding entry to a fingerprint from theTusURLMemoryStore.- Specified by:
removein interfaceTusURLStore- Parameters:
fingerprint- An upload's fingerprint.
-