Rizvi's Blog

Pages

  • Home
  • Spring
  • Spring Boot
  • AWS
  • Gradle
  • Maven
  • Hibernate
  • Git
  • Logger
  • Design Pattern
  • Web Services
  • Linux
  • GraphQL
  • Contact

Wednesday, December 27, 2017

Writing asynchronous code with CompletableFuture


  1. https://stackoverflow.com/questions/27723546/completablefuture-supplyasync-and-thenapply
  2. http://www.deadcoderising.com/java8-writing-asynchronous-code-with-completablefuture/
  3. https://blog.krecan.net/2013/12/25/completablefutures-why-to-use-async-methods/
Posted by Abu Zakir Rizvi at 6:35 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: CompletableFuture, Java 8

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Total Pageviews

191,400

Labels

  • AWS (35)
  • Java (32)
  • linux (29)
  • Data Structure and Algorithm (27)
  • Gradle (22)
  • Hibernate (18)
  • git (18)
  • Spring Boot (15)
  • AWS DynamoDB (13)
  • AWS S3 (12)
  • Maven (12)
  • MongoDB (11)
  • Spring (10)
  • Spring MVC (7)
  • Web Services (6)
  • Design Pattern (5)
  • JUnit (5)
  • Concurrency (4)
  • GraphQL (4)
  • RESTful (4)
  • Mockito (3)
  • Generics (2)
  • jdk9 (2)
  • JQuery (1)
  • JavaScript (1)
  • Programming (1)
  • jdk8 (1)

Blog Archive

  • ►  2023 (2)
    • ►  November (1)
    • ►  August (1)
  • ►  2022 (3)
    • ►  October (2)
    • ►  September (1)
  • ►  2021 (3)
    • ►  August (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2020 (4)
    • ►  September (1)
    • ►  March (2)
    • ►  January (1)
  • ►  2019 (25)
    • ►  December (8)
    • ►  November (2)
    • ►  October (1)
    • ►  September (2)
    • ►  June (1)
    • ►  May (3)
    • ►  April (1)
    • ►  March (3)
    • ►  February (2)
    • ►  January (2)
  • ►  2018 (66)
    • ►  December (3)
    • ►  November (5)
    • ►  October (2)
    • ►  August (1)
    • ►  July (1)
    • ►  June (5)
    • ►  May (2)
    • ►  April (8)
    • ►  March (12)
    • ►  February (10)
    • ►  January (17)
  • ▼  2017 (267)
    • ▼  December (50)
      • leather industry analysis in bangladesh
      • java 8 tutorials
      • Writing asynchronous code with CompletableFuture
      • Meet with Mercury1 geek person
      • Modular Programming in Java 9: Code of Koushik Sir
      • KDiff3 best installation and configuration procedu...
      • A Step by Step Guide for Learning Git without Pain
      • How to export a local project to github repo?
      • Read a file from resources folder with getResource...
      • Design Pattern, Anti Pattern and refactoring
      • Why we use TestNG instead of JUnit?
      • http client mocking
      • Java8 Tutorial learning for beginner
      • GraphQL top users
      • Java Enterprise Edition(J2EE) Study Step by Step
      • Front End developer interview questions
      • Difference between Spring Data JPA's findFirst and...
      • Set vs List: When to use Set instead of List?
      • What is the best way to communicate between doGet ...
      • How to read comma separated properties with apache...
      • How to encode images into a video file in Java thr...
      • Is Java GMail API thread-safe?
      • HTTP Status 403 - Invalid CSRF Token 'xxx' was fou...
      • How to compare date with current time in JSTL
      • OpenJpa query caching is not refreshing in case of...
      • What is GraphQL query language? Give an example
      • log4j SiftAppender doesn't generate files. How to ...
      • How to configure logback to write log in external ...
      • java.security.UnrecoverableKeyException: Failed to...
      • SLF4J: Class path contains multiple SLF4J bindings...
      • android.security.KeyStoreException: Invalid key blob
      • How to reuse a browser session for tests using sel...
      • How to convert Base64 encoded string to UUID in java?
      • com.amazonaws.services.s3.model.AmazonS3Exception:...
      • java.lang.RuntimeException: org.apache.http.conn.U...
      • JavaMail Could not connect to SMTP host SSL 465: h...
      • java.util.concurrent.ExecutionException: org.apach...
      • java.lang.IllegalStateException while reloading To...
      • java.lang.OutOfMemoryError: PermGen space Exception
      • How to get a current class name and methods that e...
      • How to prevent SQL injection attacks?
      • How to convert List into a hashMap?
      • How many ways are there to configure the Spring fr...
      • How to get the first key of a hashmap?
      • Slow Issue: Web application loading takes more tim...
      • Classloader vulnerability reproducing procedure in...
      • java.sql.SQLSyntaxErrorException: ORA-00900: inval...
      • Difference between == and equals()
      • How to access static method in struts?
      • Improve PostgreSQL query performance for 100 milli...
    • ►  November (53)
    • ►  October (12)
    • ►  September (15)
    • ►  August (21)
    • ►  July (12)
    • ►  June (27)
    • ►  May (3)
    • ►  April (9)
    • ►  March (24)
    • ►  February (18)
    • ►  January (23)
  • ►  2016 (267)
    • ►  December (29)
    • ►  November (14)
    • ►  October (19)
    • ►  September (7)
    • ►  August (31)
    • ►  July (20)
    • ►  June (27)
    • ►  May (24)
    • ►  April (11)
    • ►  March (34)
    • ►  February (21)
    • ►  January (30)
  • ►  2015 (31)
    • ►  December (3)
    • ►  November (4)
    • ►  October (1)
    • ►  September (5)
    • ►  August (6)
    • ►  May (3)
    • ►  April (1)
    • ►  March (3)
    • ►  February (1)
    • ►  January (4)
  • ►  2014 (19)
    • ►  December (8)
    • ►  November (2)
    • ►  September (9)
  • ►  2013 (1)
    • ►  August (1)

About Me

Abu Zakir Rizvi
View my complete profile

Popular Posts

  • HTTP Status 405 - Request method 'POST' not supported (Spring MVC)
    Check if you are returning a @ResponseBody or a @ResponseStatus I had a similar problem. My Controller looked like that: @RequestMapp...
  • How to find\remove unused dependencies in gradle?
    UPDATE: 28-06-2016: Android support to unused-dependency In  June, 2017 , they have released the  4.0.0 version  and renamed root proj...
  • How to solve Wildfly 10 Memory Leak Issue?
    You have to increase your heap memory. For this Edit  bin/standalone.conf  configuration file, look for the first occurrence of  JAVA_OP...
  • Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.
    Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. Solution: So you have to e...
  • How to specify @lock timeout in spring data jpa query?
    To lock entities pessimistically, set the lock mode to  PESSIMISTIC_READ ,  PESSIMISTIC_WRITE , or PESSIMISTIC_FORCE_INCREMENT . If a p...
  • Difference between Spring Data JPA's findFirst and findTop?
    From  Spring Data JPA - Reference Documentation , Limiting query results The results of query methods can be limited via the keywords ...
  • SQL Injection and how to prevent it? Hibernet/JPA/SQL
    SQL Injection 1.       Prepared Statement and Callable Statement: A PreparedStatement represents a precompiled SQL statement that can ...
  • Spring Security Session Time Out and Logout
    http://www.coderanch.com/t/618053/Spring/redirect-login-page-session-timeout http://stackoverflow.com/questions/36708580/how-to-get-sess...
  • Can't lauch google-chorme-stable. Getting Out of date NSS (Libnss3)
    For older version:  Solution is to build an older version of Chrome, which you can do like this: git clone https://chromium.googlesou...

Followers

Theme images by cstar55. Powered by Blogger.