How to use servlet 3.1 in spring mvc? : <p>There are 2 different features available:</p>

<ol>
<li><p><strong>servlet 3.0</strong> allows to process request in a thread different from the container thread.</p></li>
<li><p><strong>servlet 3.1</strong> allows to read/write into socket without blocking reading/writing thread</p></li>
</ol>

<p>There are a lot of examples in the internet about servlet 3.0 feature. We can use it in Spring very easily. We just have to return <code>DefferedResult</code> or <code>CompletableFuture</code></p>

<p>But I can't find example of usage servlet 3.1 in spring. As far as I know we have to register <code>WriteListener</code> and <code>ReadListener</code> and do dome dirty work inside. But I can't find the example of that Listeners. I believe it is not very easy.</p>

<p>Could you please provide example of servlet 3.1 feature in spring with explanation of Listener implementaion ?</p>
