Topic
  • 3 replies
  • Latest Post - ‏2013-03-04T07:47:23Z by SystemAdmin
SystemAdmin
SystemAdmin
1485 Posts

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
    261 Posts

    Re: How can I refresh periodically a BackingMap?

    ‏2013-03-01T12:32:26Z  
    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

    Re: How can I refresh periodically a BackingMap?

    ‏2013-03-01T12:43:10Z  
    • jhanders
    • ‏2013-03-01T12:32:26Z
    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
    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

    Re: How can I refresh periodically a BackingMap?

    ‏2013-03-04T07:47:23Z  
    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.
    Developing my own Evictor it might reload periodically my BackingMap by calling to my service REST?

    Regards.