public class ProjectSpaceUploadQueue extends Object implements UploadQueue
UploadQueue implementation backed by a ProjectSpaceBase.| Constructor and Description |
|---|
ProjectSpaceUploadQueue(ProjectSpaceBase projectSpace) |
| 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 ProjectSpaceUploadQueue(ProjectSpaceBase projectSpace)
projectSpace - the backing ProjectSpaceBasepublic 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.