directmemory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Lee (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRECTMEMORY-135) code comment in MemoryManagerService.java is wrong
Date Fri, 01 Nov 2013 17:09:24 GMT

     [ https://issues.apache.org/jira/browse/DIRECTMEMORY-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oliver Lee updated DIRECTMEMORY-135:
------------------------------------

    Description: 
right comment:

   /**
     * Same function as {@link #store(byte[])}, but add an relative expiration delta in milliseconds
     *
     * @param payload : the data to store
     * @param expiresIn : relative amount of milliseconds the data will expire
     * @return the pointer to the value, or null if not enough space has been found.
     */
    Pointer<V> store( byte[] payload, long expiresIn );

    /**
     * Store function family. Store the given payload at a certain offset in a MemoryBuffer,
returning the pointer to
     * the value.
     *
     * @param payload : the data to store
     * @return the pointer to the value, or null if not enough space has been found.
     */
    Pointer<V> store( byte[] payload );


  was:
~
   /**
     * Same function as {@link #store(byte[])}, but add an relative expiration delta in milliseconds
     *
     * @param payload : the data to store
     * @param expiresIn : relative amount of milliseconds the data will expire
     * @return the pointer to the value, or null if not enough space has been found.
     */
    Pointer<V> store( byte[] payload, long expiresIn );

    /**
     * Store function family. Store the given payload at a certain offset in a MemoryBuffer,
returning the pointer to
     * the value.
     *
     * @param payload : the data to store
     * @return the pointer to the value, or null if not enough space has been found.
     */
    Pointer<V> store( byte[] payload );
~


> code comment in MemoryManagerService.java is wrong
> --------------------------------------------------
>
>                 Key: DIRECTMEMORY-135
>                 URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-135
>             Project: Apache DirectMemory
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: Lightning-0.3.0
>            Reporter: Oliver Lee
>            Priority: Critical
>             Fix For: Lightning-0.3.0
>
>
> right comment:
>    /**
>      * Same function as {@link #store(byte[])}, but add an relative expiration delta
in milliseconds
>      *
>      * @param payload : the data to store
>      * @param expiresIn : relative amount of milliseconds the data will expire
>      * @return the pointer to the value, or null if not enough space has been found.
>      */
>     Pointer<V> store( byte[] payload, long expiresIn );
>     /**
>      * Store function family. Store the given payload at a certain offset in a MemoryBuffer,
returning the pointer to
>      * the value.
>      *
>      * @param payload : the data to store
>      * @return the pointer to the value, or null if not enough space has been found.
>      */
>     Pointer<V> store( byte[] payload );



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message