How to remove an entry in the cache, but does not trigger the erase in the dumps

Hi guys,.

I meet a really special condition, as the topic, I have a cache to distribute, when putting an object in the cache, Tigger will save method in dumps stored in DB, when remve one entry, will be Tigger method erase to remove it from the DB, and then I need another operation - that can remove just the entry on the cache and will not erase the DB? I checked the method of expulsion, but I think it's for the local cache. How could use on close or distribute cache cache.


could someone help me?

Thank you very much.

best,

DFJ

Edited by: 912032 March 2, 2012 12:37 AM

Hello

I tried the entry.expiry (1); in fact for me, he did work and delete the entry without calling the erase method, but he called the store method rather than setting expiration is obviously treated as an update.

The only way that I managed to make it work so far is to change the process method for the ValueEvictor like that

@Override
public Object process(InvocableMap.Entry entry) {
    BinaryEntry binaryEntry = (BinaryEntry) entry;
    ReadWriteBackingMap backingMap = (ReadWriteBackingMap) binaryEntry.getBackingMap();
    Map internal = backingMap.getInternalCache();
    if (internal instanceof LocalCache) {
        ((LocalCache)internal).evict(binaryEntry.getBinaryKey());
    }
    return null;
}

Is not the most beautiful code and is based on a normal local plan automatically using the storage card internal map reading / writing.

JK

Tags: Fusion Middleware

Similar Questions

  • Z10 blackBerry how to remove all entries from the Local calendar?

    My calendar shows my email entered account and all is well.  However, I think that when I transferred all of my Bold 9900 he faces a bunch of entries in the local calendar (House) that I don't want.  I would like to delete all entries in the local calendar.  How can I do this?  Thank you!

    Unfortunately you can't remove individual events right now. The fastest way to remove events is the 'Month' tab, then tap and hold events in the list and select 'Delete' from the side menu.

  • Smartphones blackBerry how to remove all entries from the calendar on a BB Pearl 8110?

    I would like to delete all the entries in my calendar on my pearl - history, present and future - is possible to do it for all the calendar without having to individually delete entries?

    Thank you

    1. open the Desktop Manager on your PC.

    2. open Backup/Restore > advanced.

    3. in Advanced Options, you will see a split pane screen. The left pane of your device and the right is a list of the existing databases.

    4. turn highlighted on the right of your Calendar database, click on the Clear button at the bottom to clear and clean the base calendar

  • How to remove a virus if your antivirus software does not identify it?

    I'm not dealing with this problem, but I want to just develop my abilities if in fact I this meeting at a later date.  So, how would someone go about removing a virus if they had run programs such as the anti-virus scanning, scan malwarebytes, windows defender and removal of malware without identification tool.

    Thanks to all those who respond.

    AntiVirus software contain something detecting threats based on their behavior. If an unknown application trying to damage your system such as unknown viruses, so they detect it by his actions and put in quarantine and then sends a report to the Malware Research Center and there they will check the file Virus to see if it is a Virus or not, if it is then they will apply tools of abduction during the update and if it's NOT virus they patch update in order to release it.

    In some cases of Virus may not detect at all, in this case you must contact the anti-virus company support team and ask them for help and they will help you and guide you what you should do.

    Almost all anti-virus companies have a way as form or e-mail you can submit samples of the Virus that can not detect by they anti-virus and they will analyze samples and give updated based on analyze.

    For Microsoft, you could provide a sample to:

    https://www.Microsoft.com/security/portal/submission/submit.aspx

    I recommend you who still do not know the support link or by phone of your anti-virus (anti-virus company) that you have.

  • How to remove a Word from the default dictionary of firefox?

    How to remove a Word from the default dictionary of firefox?
    If I wanted to remove the word 'dog' or 'and' for example

    There may be a range of reasons for wanting to do this, including the deletion of the words you use rarely as similar to other common spellings used words for example. "minute" and "Minuet", delete the words that you find personally offensive, or removing words that, because of linguistic or cultural background, you would not consider words at all.

    Note that I'm not asking how to remove my 'dictionary' words, words that I added myself.

    Hello

    I talked to a few people and I think I'm able to help you with this.

    There are two dictionary files, the default that comes with your version of Firefox and personal 'custom' that you create yourself with phrases and words.

    If you want to change the personal;

    1. Copy Subject: support and paste into the address bar.
    2. Next to the profile folder, click the marked File Show
    3. Find the file persdict.dat. Rename a text file, open, modify, re save it as persdict.dat and replace.

    If you want to change the default dictionary, it could be more of a problem and a lot more technique to do. I would recommend that you look at the problem differently and consider filtering of pages based on inappropriate content using Add-ons such as ProCon Latte Content Filter.

    I hope this helps, but if not, please come back here and we can look at another solution for you.

  • If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore all changes since the first full file

    If time machine is incremental how it removes previous versions when the disk is full, without breaking the chain, so do not be able to restore the file with any changes made since the full backup first file...

    If the TM drive storage is full TM automatically deletes the version the oldest files for the new incremental backups can be made. Thus, in this case you cannot restore the versions that TM deleted because it takes more storage.

  • How to remove "Skype available" from the top of the notification page?

    How to remove "Skype available" from the top of the notification page - useless promotion!

    Hello!

    Disable the Skype status under Notification settings in Skype.

    All best
    Siim

  • How to remove a city from the weather app in IOS 9.2.1?

    I have an IPhone6S that I bought recently and am running IOS 9.2.1. I can't understand how to remove a city from the weather app. I tried to go to settings, where there is a list of all the applications on my phone except the weather app, so no help there. Any body can help me with this?

    You must tap on the small set of lines in the lower right to get list view. Then you can find the city that you want to delete, drag to the left to see the button Delete.

    See you soon,.

    GB

  • How to remove a shortcut with the command line?

    How to remove a shortcut with the command line?

    How to make a backup of the local users and groups with command line?

    You delete a shortcut, just as you would remove any other file.  A shortcut will end with the extension ".lnk".  So assuming you are trying to remove the shortcut named "Shortcut.lnk" which appears to the user 'Bob's Office, you use the button Delete (del) or 'clear' command by specifying the full path to the file.  (Remember to put filename in quotes if there is a space anywhere in the path or name) as in:

    del "C:\documents and settings\Bob\Desktop\Shortcut.lnk".

    What kind of a backup 'users and groups' you want to do?  If there is a backup of the users and groups as written in the registry, a good registry as C:\WINDOWS\ERUNT backup program that will make the command line.  If you are trying to backup all users and their data as well, then you are better off with a backup program.

    HTH,
    JW

  • How to remove all information from the computer so I can sell it?

    How to remove all information from the computer so I can sell it?

    Hello

    You will want to format the hard disk:

    1. you can use DBAN - http://www.dban.org/

    or

    2. you can follow this tutorial to clean install up to the step where you format the disk, in which you would then STOP (because you just want to get rid of the files on the hard drive, do not install Windows) - http://www.sevenforums.com/tutorials/1649-clean-install-windows-7-a.html

    Kind regards

    Patrick

  • How can remove my account from the cloud to adobe

    How can remove my account from the cloud to adobe

    I would like to unsubscribe the service

    Hi mehranr34543413,

    Please contact the customer service. A customer service agent can help you with this request.

    Best,

    Sara

  • How to remove a page of the PDF document?

    How to remove a page from the PDF?

    Tools > Pages > delete

    Select that range from the page to remove

    Click on the OK button

  • How to remove a step with the polygon Lasso tool

    How to remove a step with the polygon Lasso tool

    In PS, all you have to do is to hit the DELETE key and you can go back a little with the polygon Lasso tool. How to accomplish this in Fireworks?

    Another option that gives you a lot of control is to use the tool pen instead of the polygon lasso. Because it's a vector path, you can refine the outline very easily using the tools of feather and Subselects and when you are satisfied with the result, click on modify > convert a path to the top. You can even choose to keep or delete the vector path in the preferences panel.

    HTH

  • How to remove a user from the application

    How to remove a user from the EBS application?

    12.1.3 R

    Hello

    You can put an end to the user date

    Connect to Oracle Applications - select the responsibility of the system administrator - security - user - define - query with the username - and then you can give the end date in the effective Date column.

  • How to validate an entry when the focus leaves the intensity absorbed in

    How to validate an entry when the focus leaves the intensity absorbed in a form?

    "Ansury" wrote in message
    News:garo90$L71$1@forums. Macromedia.com...
    > Not AFAIK. Event.Target has a reference to the object that sent the
    > event. In livedocs:
    >
    > "Every event object has a goal and a currentTarget property that help."
    > you
    > Hold where it is being spread. The target
    > property
    "> return to the sender of the event.
    "
    >
    > BUT...
    > Your if statement will never evaluate true because you compare one
    > UITextField to a TextInput. A UITextField (stored internally in a
    (> TextInput, it makes the text) actually dispatches the event.

    currentTarget gives you the object on which the event actually listener
    attached to...

Maybe you are looking for

  • More recent update problem El Capitan

    I tried to update my os el capitan 10.11.3 and its deadlock. What will I do? Post edited by: adlib3120

  • Busy service

    Hi I can not create a support request for my laptop that is under warranty. He says just 'busy Service' whenever I submit the serial number of the product. The power to my T440 brick broke, it will not power or recharge the battery. How can I create

  • The upgrade from Windows 7 Starter to Windows 7 Professional

    Well, I still found a definatative answer to my question. Here's my situation. I have a netbook with Windows 7 Starter. I HAVE a retail upgrade Windows 7 Professional DVD with product key. My question is simply this. If I use Windows Anytime Upgrade

  • The search returns an unexpected error

    I just did a fresh install of Windows XP Pro/sp3. The research and the companion does not work.  It returns an error message which: unexpected error: action could be completed. Disabled the indexing service (using the companion anyway).  Same result.

  • dv2120us problem with Quickplay buttons.

    Hi, I had a problem with my laptop. These are real (not the quickplay button) quickplay buttons but the game, mute, volume, keep buttons etc. to control themselves and increase the volume and mute itself randomly. I already uninstalled the driver of