public class SimpleUploadQueue extends Object implements UploadQueue
UploadQueue.| Constructor and Description |
|---|
SimpleUploadQueue() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(FileIdentifier identifier)
Enqueues a
file for upload. |
List<FileIdentifier> |
getPendingUploads() |
void |
remove(FileIdentifier identifier)
Removes a file from the upload queue.
|
void |
remove(int index)
Removes the file at the given index from the upload queue.
|
public List<FileIdentifier> getPendingUploads()
getPendingUploads in interface UploadQueuefiles waiting to be uploadedUploadQueue.getPendingUploads()public void add(FileIdentifier identifier)
file for upload.add in interface UploadQueueidentifier - the id of the fileUploadQueue.add(org.eclipse.emf.emfstore.internal.server.model.FileIdentifier)public void remove(FileIdentifier identifier)
remove in interface UploadQueueidentifier - the id of the fileUploadQueue.remove(org.eclipse.emf.emfstore.internal.server.model.FileIdentifier)public void remove(int index)
remove in interface UploadQueueindex - the index of the fileUploadQueue.remove(int)Copyright © 2017. All rights reserved.