Tag Archives: async

Jersey non blocking client

Although Jersey already have support for making asynchronous requests, it is implemented by standard blocking way – every asynchronous request is handled by one thread and that thread is released only after request is completely processed. That is OK for … Continue reading

Posted in java | Tagged , , | Leave a comment

Limiting threads used for asynchronous requests – Jersey Client

Jersey Client already has support for making asynchronous requests, but it uses default ExecutorService, which spawns new thread for each request, which is not very convenient in most of cases. You can set your own ExecutorService (see Client.setExecutorService()) and limit … Continue reading

Posted in java | Tagged , , , | Leave a comment