Vote count: 0 I have a page where images are displayed in div with background image....
ادامه مطلبVote count: 0 I am new to Vertx. I am playing with the API and I am trying to write a FileSizeHandler. I don't know if it is the correct way to do it but I would like to have your opinions. In my code I would like to use the handler like this : public class MyVerticle extends AbstractVerticle { @Override public void start() throws Exception { getFileSize("./my_file.txt", event -> { if(event.succeeded()){ Long result = event.result(); System.out.println("FileSize is " + result); } else { System.out.println(event.cause().getLocalizedMessage()); } }); } private void getFileSize(String filepath, Handler resultHandler){ resultHandler.handle(new FileSizeHandler(filepath)); } } Here is my FileSizeH...
ادامه مطلب