Set a new expiry delay for entries added in the cache by a read through

Hi,
I have an application that uses an Oracle Coherence cache backed by a database. Each item that is added in the cache must have a custom expiry delay computed from its content.
Is it possible to set a new expiry delay for the entries loaded in the cache from the database by a read through operation?
I tried setting a new expiry delay in the load method of the BinaryEntryStore, but it is ignored and the default expiry of the corresponding cache is used instead. Also I tried using a MapTrigger, but the entries added in the cache by a read through operation are not intercepted by the MapTrigger.
Thanks,
Adrian

What we do (not sure if it proper way, but it worked for us) is extend the LocalCache and override the put method.
public Object put(
Object oKey,
Object oValue,
long expiry)
long newexpiry = xxxxx;
return super.put(oKey, oValue, newexpiry);
}

Similar Messages

  • How to set a new SCSI number for a second drive?

    How to set a new SCSI number for a second drive?
    Walter

    Walter,
    This web site gives a good diagram:
    http://www.hitachigst.com/hdd/support/dpes/dpesjum.htm
    On a Quantum hard disk drive - they were the original equipment manufacturer (OEM) hard drive provider for Apple, you will see three or four pairs of pins on the green circuit board. They are labled:
    AO . .
    A1 . .
    A2 . .
    If no pins are connected, you have SCSI ID Zero This was the standard setting from the factory.
    If you short out the pins beside AO .__. , you have designated SCSI ID One.
    If you short out the pins beside A1 .__. , you have designated SCSI ID Two.
    If you short out the pins beside A2 .__. , you have designated SCSI ID Four.
    These values can be added together to get other SCSI IDs. If you have a jumper beside AO AND A1, that will add up to SCSI ID Three.
    Some of the quantum drives used tiny black plastic jumpers with tiny metal contacts. I have yet to find a store that sells the tiny ones. I get my larger jumpers from old PC motherboards that are being thrown away. A small piece of aluminum foil will work as a jumper in a pinch. Just make sure it soed not fall off and short something else out!
    Jim
    PS
    CD-ROM drives are set at the factory as ID 3. Internal drives are set at ID 0. I set my external SCSI drive at SCSI 1 so it does not conflict with the internal drive. Internal Zip drives are set at ID 5 and external Zip drives let you choose between 5 and 6. I set my burners at ID 4. Come up with a master plan for your devices like scanners and burners. Apple System Profiler will give you info on the device ID. If the computer fails to boot, turn off all but one SCSI device and make sure of its ID. Then check each subsequent device by powering up only one device at a time while booting from a CD at ID #3.

  • How to set a new email account for iCloud?

    How set a new email account for iCloud?

    There are two separate things you can do.
    You can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account, and if it has @mac.com or @me.com versions these cannot be reinstated once deleted.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a
    Or if you want a completely separate account you will have to create a new iCloud account and sign into it in System Preferences>Mail, Contacts and Calendars. Note that any one device can create only three iCloud accounts.

  • How use set up with office 2011 for mac as I did keep tried put download but it's always 'update' download. I want get start set up new office 2011 for mac? please help me

    how use set up with office 2011 for mac as I did keep tried put download but it's always 'update' download. I want get start set up new office 2011 for mac? please help me

    You must be using an update CD.  You need the software that has the full version first - install that, then you can use the update one if needed. I know, cuz I made the same mistake - lol

  • I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder

    I have copied many photo's from another laptop to my Mac.  The older photo's are in directories with names that help me select what I need to view. I would like to have all my imported new photo's also bee added to the directory structure I have in Finder but my new photo's are all in iPhoto.  I want to use directories for storing and iPhoto for viewing.  Is this possible or do I need to have all my photo's in iPhoto??
    Mitch

    iPhoto is not a Photo Viewer. It's a Photo Manager and designed for looking after the files while you organise the Photos. It really works much better if you let it manage those files. If you use iPhoto you never go near those files because iPhoto is your start point for anything you want to do with your Photos - the point of the pplication.
    You can run iPhoto in Referenced mode, where it does not copy the files to the Library, but I caution you that you are making life a lot more difficult for yourself by doing that.
    How to, and some comments on why you shouldn't, are in this thread
    https://discussions.apple.com/thread/3062728?tstart=0
    Regards
    TD

  • I have a MAC Pro from 2011 currently running MAC OS 10.9.5.  This weekend I cloned the MAC HD drive to a new SSD drive for improved performance.  The clone was completed successfully with no errors.  After the clone completed I successfull restarted my sy

    I have a MAC Pro from 2011 currently running MAC OS 10.9.5.  This weekend I cloned the MAC HD drive to a new SSD drive for improved performance.  The clone was completed successfully with no errors.  After the clone completed I successfully restarted my system using the SSD as the boot device.  I then successfully tested all of my products, including Photoshop CS6 and all of its plug-ins.  I successfully tested the key features that I frequently use.  Today while attempting to launch Photoshop CS6 a message is being displayed indicating that a scratch disk cannot be found.  All drives are available on the system via the Finder and Disk Utility.  I can access all drives including the old MAC HD which is no longer the boot device.  I've even attempted to launch Photoshop from the old device yet the same error persist.  Is there a way to review/edit/change Photoshop preferences if Photoshop doesn't launch?  I've even restarted my system several times to see if that would resolve the issues.  Does anyone have any recommendations for this issue?  Have you previously address this issue? 
    Thank you Gregg Williams

    Boilerplate text:
    Reset Preferences
    http://forums.adobe.com/thread/375776
    1) Close the program and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (not reversible)
    or
    2) Move the Folder. See:
    http://www.bugge.com/Family-and-friends/Illy/illy.html
    --OB

  • How do i set up my 3g sim for my iPad? the sim is already activated but i dont know how to get it to work

    how do i set up my 3g sim for my iPad? the sim is already activated but i dont know how to get it to work

    Setting>Cellular Data>On

  • New shuffle plays for about 15 seconds and then turns off even through it's charged

    brand new shuffle plays for about 15 seconds and then turns off even through it's charged. 3rd one I've had that does this

    Double check to make sure the headphones are plugged ALL the way in, meaning no silver can still be seen from the headphone's plug.
    B-rock

  • I have a iPhone and iPad on one iTunes account, I have recently bought two further I touches fir the kids , should I set them up with their own apple ids and the can I transfer purchases through all devices

    I have a iPhone and iPad on one iTunes account, I have recently bought two further I touches fir the kids , should I set them up with their own apple ids and the can I transfer purchases through all devices,

    Hi jhyiesla,
    Im not sure wether I got you right or not. But my advice/s would be as follows:
    These steps help you get rid of old apps you downloaded years ago and you do not use anymore.(Also frees space on your mac after emptying the trash)
    1) go to iTunes and delete all applications in it. Make sure to move them to trash! Do not empty your trash yet. Its your backup if step 3 doesnt appear.
    2) connect both your devices(one after each other) and make a backup. !!!Dont press the Sync button, press the Back Up Now Button
    3) Then it asks you if you want to backup applications as well. Confirm. (This is how apps get transferred manually)
    4) Then Sync your devices... The first time it might be, that there are some additional apps loaded to your devices you dont want to.. delete them on your Device (not iTunes) and after that you should be good every time you sync again.
    5) now you can empty your trash on your mac.
    Further,
    - You should regularly connect your devices with iTunes to make sure they are backed up. (Even if you have activated iCloud backup, the iTunes backup is more proper i.e.. Apps)
    - If you hate scrolling through a list of apps in iTunes, you can re/install apps directly on iOS not via iTunes. I absolutely never go to the "Applications" section in iTunes. I install and delete apps directly on iOS.
    jl

  • Warning: There are Java errors for this object. The wizard will be read only until they are corrected.

    when I try to open seeded VO.xml from Jdeveloper it is giving below error. Can any one please help me out.
    Warning: There are Java errors for this object. The wizard will be read only until they are corrected.
    R12 version 12.1.3
    Jdev patchp9879989_R12_GENERIC.zip
    Thanks
    Venkata .T

    Hi Venkata,
    Same thing happening to me, R12.1.3. Please let me know if you find anything on this.
    I tried some steps in this forums related to this, but no change. however I am not worried, customization works perfect after extension, but wanted to know the reason.
    Thx..

  • Warning: There are java errors for this object. The wizar will be read-only

    I migrate JDev9 to JDev10 and if open any module show message:
    "Warning: There are java errors for this object. The wizard will be read-only util they are corrected."

    [Solved, sort of] view objects read only mode
    The Oracle fix the problem?
    Message was edited by:
    oracle_user7

  • New Price Updates for newly added Items Through VA02

    Hi All,
    Through VA02 ,If you change first date in line item we have written code in MV45AFZB(USEREXIT_NEW_PRICING_VBKD
    ) for updating price for that item.
    Now the issue is if u add one more new line item through VA02 itself..here we were not getting that line item detials.because its not yet saved.
    We want to update prices for newly added items also.

    Hi Reddy,
    For translation of any text , goto SE63 -> in menu TRANSLATION -> R/3 Enterprise - > Transport object -->
    for Transport Entry of Object : R3TR SHI3 ZABC
    then select target & source lang. click EDIT.
    Hope this helps you.
    Reagards,
    Aby

  • Is it possible to set a new default ringtone for alarm clock?

    Just wondering if it is possible to set a specific ringtone to all alarms in the alarm clock without changing each alarm individually?  My husband needs a MUCH louder alarm tone than the default.
    Thanks.

    Thank you for posting.
    When you say "Is it possible to set a minimum sale amount for eCommerce - $20 for example?", are you saying the customer should not be able to check out if he has less than $20 in the shopping?
    If so, then it is not possible. I've not seen such kind of custom set up in BC yet. However, I'll leave this post open. If any of our partners have done it before, they might be able to help you.
    Regards,
    Aishvarya Raj Rastogi

  • Exchange 2010 - Error setting a new transport rule for email disclaimer

    Hi
    Trying to setup some additional email disclaimer rules on Hub transport under Org Config on exchange 2010. We allready have a few and they work ok, however we are trying to replace this woth some alternate ones and are getting the error
    The length of the property is too long. the maximum length is 8192 and the length of the value provided is 8522.
    Most of this length comes from the html code we are inserting into the disclaimer. I've reduced it by about as much as i can but it's still too large. Does anybody have any suggestions or know if it;s possible to increase the 8192 sixze limit ?
    Regards
    Roger

    Hi Roger,
    For AD replication packet the ideal size is 8K. Or the above error may occur due to build/design issues.
    You can eliminate this size related issue by splitting the large rule into multiple rules. This size limit is Per Rule and does not add up for all rules. 

  • Setting up a shared library for multiple accounts on the same machine

    I am in idiot. I can't figure it out. This is exactly what I did.
    1 - I set up multiple accounts on the computer. 1 for me and another for my wife.
    2 - I loaded all the music into my account's public folder.
    3 - I set the default folder in both hers and mine iTunes for this Public folder
    4 - I then opened iTunes in my account and none of the songs were showing up so I dragged the folder into iTunes and it did its business. Now my account is all set.
    Here are my questions:
    A - Do I need to drag the folder into my wife's account iTunes as well?
    B - If either of us add music when logged in, will it automatically update in the other iTunes interface or is there something specific that needs to (manually) be done?

    Doing it the way you did, you each have your own iTunes library file and are using the same iTunes music folder.
    Changes by one will not be seen by the other and any new music added by one will have to be added to the library by the other.
    Also, if one deletes music, it will be in teh library for the other but it will not be playable because the other person deleted it in the iTunes music folder.
    Launch iTunes, then immediately press and hold Option, then select *Create new library*.
    Create one in Users/Shared.
    Quit iTunes.
    Move all your music into the new /Users/Shared/iTunes/iTunes music folder.
    Login to your Wife's computer account.
    Move all her music into the new /Users/Shared/iTunes/iTunes music folder.
    On her account, launch iTunes, then immediately press and hold Option, then select *Choose existing library*.
    Select the _iTunes library file_ in /Users/Shared/iTunes.
    In iTunes, File -> Add to library and select the iTunes music folder in /Users/Shared/iTunes.
    All the music will be there.
    Quit iTunes and log out of her account and back into your account and launch iTunes normally.
    All music will be there.
    You should go to /Users/Shared/iTunes folder and right click - get info, click *Ownership & Permissions*. Set *You can* to *Read & Write* and set Others to *Read & Write*.
    Click *Apply to enclosed items*.
    Any changes (new/deleted music, ratings, playlists, etc.) by one will be seen by the other sionce you are using the same iTunes library file.
    Only one person can have iTunes open at a time. If you use Fast User switching, one will need to quit iTunes before the other can use it.

Maybe you are looking for

  • How to setup wireless time capsule with 3rd party external HDD and router?

    Topic says it all really... I've got a linksys router and an iomega external hard drive. I want to have wireless time capsule setup but i don't really wanna shell out for an apple time capsule when I have a perfectly working router and hard drive...

  • Can use adobe livecycle reader extensions es to compile adobe livecycle designer ES3 file?

    Hi , I am using livecycle designer ES and livecycle reader extensions es to create some PDF files. I want to use the new feature action builder, so I downloaded the designer ES3. After creating some new files, I tried to use livecycle reader extensio

  • Use of options in aggregates

    Hi all, Someone please enlighten me on the use of options in aggregates:- 1) "propose query defination" 2 )" propose from bw statistics" 3) "propose from bw statistics (tables") 4)  "propose from last navigation" 5)  "propose from statistics usually

  • Printer prints too much info on a page(hp photosmart 5520)

    I  just  tried to print a certain page  from  my banks account  and  i just  wanted  to print a certain  information  but there were  3  different section of  the page  all 3  on top of  another  so it printed everything  on top of  another. How  do

  • New Serial - ATA Hard Drive Partitioned with OS 10.5.4 and OS 10.3.9

    Dear forum, I'm looking at this Internal Hard Drive - 609480 Hitachi T7K500 320GB 7200RPM SATA 3GB/s 16MB Cache - OEM - I need to obtain the 4 guide screws before I fit it in the lower bay of my G5. Is this hard drive approved by Apple? I need to ver