A bit of javadoc patch

View: New views
3 Messages — Rating Filter:   Alert me  

A bit of javadoc patch

by Tigran Mkrtchyan-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



It's never enough.

Regards,
    Tigran.

[grizzly-javadoc.patch]

Index: code/modules/grizzly/src/main/java/com/sun/grizzly/DefaultSelectionKeyHandler.java
===================================================================
--- code/modules/grizzly/src/main/java/com/sun/grizzly/DefaultSelectionKeyHandler.java (revision 3774)
+++ code/modules/grizzly/src/main/java/com/sun/grizzly/DefaultSelectionKeyHandler.java (working copy)
@@ -222,7 +222,15 @@
         return timeout;
     }
     
-    
+    /**
+     * Set expiration timeout for the {@link SelectionKey}.
+     *
+     * If during that defined timeout the client isn't pushing bytes
+     * (or closing the connection), the SelectionKey will be expired
+     * and its channel closed.
+     *
+     * @param timout in seconds
+     */
     public void setTimeout(long timeout) {
         this.timeout = timeout;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

Re: A bit of javadoc patch (update)

by Tigran Mkrtchyan-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

actually, I was going to send this one.

On 10/20/2009 09:18 PM, Tigran Mkrtchyan wrote:

>
>
> It's never enough.
>
> Regards,
> Tigran.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...

[grizzly-javadoc.patch]

Index: code/modules/grizzly/src/main/java/com/sun/grizzly/DefaultSelectionKeyHandler.java
===================================================================
--- code/modules/grizzly/src/main/java/com/sun/grizzly/DefaultSelectionKeyHandler.java (revision 3774)
+++ code/modules/grizzly/src/main/java/com/sun/grizzly/DefaultSelectionKeyHandler.java (working copy)
@@ -222,7 +222,16 @@
         return timeout;
     }
     
-    
+    /**
+     * Set expiration timeout for the {@link SelectionKey}.
+     *
+     * If during that defined timeout the client isn't pushing bytes
+     * (or closing the connection), the SelectionKey will be expired
+     * and its channel closed. The negative timeout value will let
+     * {@link SelectionKey} never expire.
+     *
+     * @param timout in seconds
+     */
     public void setTimeout(long timeout) {
         this.timeout = timeout;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

Re: A bit of javadoc patch (update)

by Jeanfrancois Arcand-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK I will apply it!

Thanks!

- Jeanfrancois

Tigran Mkrtchyan wrote:

> actually, I was going to send this one.
>
> On 10/20/2009 09:18 PM, Tigran Mkrtchyan wrote:
>>
>>
>> It's never enough.
>>
>> Regards,
>> Tigran.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@...
>> For additional commands, e-mail: dev-help@...
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...