Errai: The browser as a platform

Friday, February 15, 2013

RPC batching

Today's spotlight is on yet another new feature in Errai 3: RPC batching.

GWT and Errai shine in big web applications that implement complex use cases. These use cases often require multiple interactions with the server. RPC batching allows for batched invocations of remote methods that will be executed using a single server round-trip. This is useful for reducing the number of simultaneous HTTP connections and at the same time allows for reusing and combining fine-grained remote services.

Errai offers a lightweight and boilerplate-free RPC mechanism. All details can be found here. Simply inject a BatchCaller instead of a Caller<T> to make use of batched remote procedure calls. The rest of the API should be familiar if you already use Errai. Here's an example:


Only after sendBatch is called will the remote methods get executed. An additional RemoteCallback can be provided to the sendBatch call which will be invoked when all remote calls have completed in success. Consequently, an additional ErrorCallback can be provided which will get executed for all remote calls that have completed in failure.

The credits for inspiring this feature go to our invaluable community member Josh Blinick. The API might still change as we're looking for feedback! If you have ideas or any feedback, please comment. Here's the link to the JIRA.

5 comments:

  1. I'm very happy being Herpes free now. It was a sad incident that was announced to me after the check up in the hospital and I was diagnosed of HSV 2. I thank God now for using Dr.odey Abang to cure my virus. I'm not ashamed to say this because no virus of such can be detected in me. I'm Charlotte from Columbia. I thought about it many Times when I heard about this Herbal cures for Herpes. I was really happy when I came across blogs of comments of Doctors who run cures sicknesses and was comfortable to try Dr. Abang from patients testimony I came across here on my online page. I knew now they are real Africa herbalists who run cures for Herpes. There's every opportunity to be cure with natural herbs, because all medical prescriptions are derived from herbs and roots. Its really hard time living with Herpes on drugs which can't get you cure. I tried this and I can boost of myself now as a woman. I need to be loved not to lost, get your instant cure to all sicknesses from Dr, Odey Abang.
    He cures HSV,HPV,Cancer,low spam count and much more from the evidence I saw 💯 % sure no site effects with active immune booster

    Email him for you cure
    Odeyabangherbalhome@gmail.com
    WhatsApp/calls
    +2349015049094

    ReplyDelete
    Replies
    1. Good day to you all am very happy to write this testimony to the whole world to see the great work of the great man named DR.ehiaguna I was down over since 1year but thank god am here to give this testimony for you all to see the great powers that is hiding on this earth I was once an HSV 2, but thanks to him that help me I was going through internet looking for cure when I see this man name ehiaguna  I quickly email him If I can get help to grateful surprise to me he really do according to the post I see on internet this man ask me to provide some necessary things which he should be able to use for my cure, I did what he say and after everything, this man told me that after two weeks I will be cured, after that ending of the weeks i should go for test I did and I was very happy when I see my result but i don’t know how he did it but thank God for bring this man to me am very happy to see myself am HSV negative you can order now and get your cure on email: drehiaguna@gmail.com  just call him for quick answer on his number +2348073908953, also contact him on this 1. HIV / AIDS 2. COPD 3. CANCER 4. ALS (Lou Gehrig's disease) 5. Hepatitis B6. HPV 

      Delete
  2. Nothing is not possible in this word.
    Herpes I cried out for 8moths had a cure and was making use of the Medication that never wanted a life living on drugs, I applied Antibiotics, he prescribed for me the acyclovir(Zovirax), famciclovir (Famvir), andvalacyclovir (Valtrex).
    They never get me cured.
    My God keep blessing you and your Family. Dr
    ODEY ABANG, your a powerful Herbalist fir your work in my life
    I wish you know how I feel inside me when I was making use of does tablets that never could there get me cured. I had to search about some of my favourite blogs when I thought about Dr Odey abang from the testimonies of patients and I remember a friend who told me I should try Dr. Odey Abang herbal medicine. He told me the man can cure me,but was shy and feel its dirty taking in herbs made with African herbalists.
    You need to know I would have been cured before now since I knew him then, but still interested in letting you that was my punishment.
    Thanks reading my article, feel good and not make my mistake, I love testimonies and explanations of the new beginning is all I hope for
    Think about your live and use herbs to get you cured of your challenge on
    HIV/Aids
    SYPHILIS
    DIABETES
    CANCER
    ALL CAN BE CURED WITH MANY OTHERS BY DR. ODEY ABANG
    His email is for you so you speak to him

    Odeyabangherbalhome@gmail.com
    WhatsApp number +2349015049094

    ReplyDelete
  3. I want to give a Testimony on how I got Cured From HPV. four years ago I was Diagnosed with HPV. I was having some outbreaks. I went to see a Doctor and many Blood Tests were done on me. My Doctor told me that there’s no cure for HPV. I felt bad, I went online searching for a possible cure for HPV, I saw a post of Milton Buckler, a herbal doctor called Dr Ovie who cured him from HPV. I contacted him and told him how I’m feeling and he said his herbal medicine can cure me. He sent me the medicine via Ups delivery service and I received the medicine some days after he sent it, i took the medicine as prescribed by him. Before the completion of the medication the symptoms stopped. I went to the Doctor and carried out another blood test, surprisingly I was Negative. I haven’t had any symptoms anymore, you can contact Dr Ovie  through his email: ovie.miraclemedicine1@gmail.com  ovie.miraclemedicine1@yahoo.com call or whatsApp Dr on this number now +2349056393169 Dr Ovie also have the cure for different types of diseases like1 cancer cure2 lupus cure3 ringing ear4 herpes cure5 warts cure6 hpv cure7 hiv cure8 fibroid cure

    ReplyDelete
  4. Good day to you all am very happy to write this testimony to the whole world to see the great work of the great man named DR.ehiaguna I was down over since 1year but thank god am here to give this testimony for you all to see the great powers that is hiding on this earth I was once an HSV 2, but thanks to him that help me I was going through internet looking for cure when I see this man name ehiaguna  I quickly email him If I can get help to grateful surprise to me he really do according to the post I see on internet this man ask me to provide some necessary things which he should be able to use for my cure, I did what he say and after everything, this man told me that after two weeks I will be cured, after that ending of the weeks i should go for test I did and I was very happy when I see my result but i don’t know how he did it but thank God for bring this man to me am very happy to see myself am HSV negative you can order now and get your cure on email: drehiaguna@gmail.com  just call him for quick answer on his number +2348073908953, also contact him on this 1. HIV / AIDS 2. COPD 3. CANCER 4. ALS (Lou Gehrig's disease) 5. Hepatitis B6. HPV 

    ReplyDelete