geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (GEODE-3136) Replace all public API time values with std::chrono types
Date Tue, 07 Nov 2017 16:58:02 GMT


ASF GitHub Bot commented on GEODE-3136:

dgkimura commented on a change in pull request #144: GEODE-3136: Convert time values to std::chrono::duration.

 File path: cppcache/include/geode/AttributesMutator.hpp
 @@ -64,13 +68,13 @@ class CPPCACHE_EXPORT AttributesMutator {
   virtual ~AttributesMutator();
   /** Sets the idleTimeout duration for region entries.
-   * @param idleTimeout the idleTimeout in seconds for entries in this region.
+   * @param idleTimeout the idleTimeout for entries in this region.
    * @return the previous value.
    * @throw IllegalStateException if the new idleTimeout changes entry
    * expiration from
    *   disabled to enabled or enabled to disabled.
-  int32_t setEntryIdleTimeout(int32_t idleTimeout);
+  std::chrono::seconds setEntryIdleTimeout(std::chrono::seconds idleTimeout);
 Review comment:
   I like it, self-documenting code!

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Replace all public API time values with std::chrono types
> ---------------------------------------------------------
>                 Key: GEODE-3136
>                 URL:
>             Project: Geode
>          Issue Type: Improvement
>          Components: native client
>            Reporter: Jacob S. Barrett
>            Assignee: Jacob S. Barrett
> Remove ambiguity of time values by using [{{std::chrono}}|]
types in the public API. 

This message was sent by Atlassian JIRA

View raw message