Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

how i could know when all the files have been finished uploading #13

@lingyulin

Description

@lingyulin

how I could know when all the files have been finished uploading
or how to know how many files are beeing uploading

int fileCount = ??;
int i;
final Object obj = new Object();
req.uploadHandler(new Handler() {
@OverRide
public void handle(HttpServerFileUpload event) {
upload.streamToFileSystem(...);
i++;
if(fileCount == i)
obj.notify();
}
});
synchronized(obj){
obj.wait();
}
//all the files has been finished uploading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions