Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2013-03-04T07:47:23Z by SystemAdmin
SystemAdmin
SystemAdmin
1485 Posts
ACCEPTED ANSWER

Pinned topic How can I refresh periodically a BackingMap?

‏2013-03-01T12:28:05Z |
Hi,

I'm doing a data preload into a BackingMap with the "Loader preloadMap method" and the "CREATION_TIME" Evictor Type evicts the BackingMap 2 hours later (it's configurated in this way). The BackingMap is loaded by means of a REST service that returns the data.

I'd like to deactivate "CREATION_TIME" Evictor Type and to be able to refresh the BackingMap each 2 hours by calling the REST service.

How can I refresh a BackingMap in this way?

Regards.
Updated on 2013-03-04T07:47:23Z at 2013-03-04T07:47:23Z by SystemAdmin
  • jhanders
    jhanders
    257 Posts
    ACCEPTED ANSWER

    Re: How can I refresh periodically a BackingMap?

    ‏2013-03-01T12:32:26Z  in response to SystemAdmin
    Would having a job kicking off every two hours that does a map.clear() and then calls your REST service allow for this?

    Hope this fits into what you were thinking. If it doesn't please let us know what additional scenario do you need that it doesn't satisfy or more details explaining additional requirements.

    Jared Anderson
    • SystemAdmin
      SystemAdmin
      1485 Posts
      ACCEPTED ANSWER

      Re: How can I refresh periodically a BackingMap?

      ‏2013-03-01T12:43:10Z  in response to jhanders
      Yes, rightly I want it, a job that is executed every 2 hours, clean the BackingMap and call to the REST service again.

      Thanks!.

      Regards.
      • SystemAdmin
        SystemAdmin
        1485 Posts
        ACCEPTED ANSWER

        Re: How can I refresh periodically a BackingMap?

        ‏2013-03-04T07:47:23Z  in response to SystemAdmin
        Developing my own Evictor it might reload periodically my BackingMap by calling to my service REST?

        Regards.