geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (GEODE-3554) Document not invoking CacheFactory.getAnyInstance() from user callbacks
Date Mon, 22 Jan 2018 20:04:01 GMT


ASF subversion and git services commented on GEODE-3554:

Commit ec53f620359f85b4d3c0063b34ec5911e84c50c9 in geode's branch refs/heads/develop from
[;h=ec53f62 ]

GEODE-3554: Add additional javadoc about how to get Cache.

> Document not invoking CacheFactory.getAnyInstance() from user callbacks
> -----------------------------------------------------------------------
>                 Key: GEODE-3554
>                 URL:
>             Project: Geode
>          Issue Type: New Feature
>          Components: core
>            Reporter: Fred Krone
>            Assignee: Anilkumar Gingade
>            Priority: Major
>              Labels: cache, geode-150, pull-request-available
> As long as the product continues to invoke user plug-in callbacks during startup (and
with the main thread), we probably need to document a warning not to use CacheFactory.getAnyInstance()
as the API call is common in plug-ins and this will freeze startup.
> We are planning on deprecating and removing CacheFactory.getAnyInstance() anyway.
> Documentation should recommend using preferred APIs:
> * FunctionContext.getCache()
> * Event.getRegion().getCache()
> We could expose Event.getCache() to make it more obvious to users.

This message was sent by Atlassian JIRA

View raw message