All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.maxifier.mxcache.storage.elementlocked.LongBooleanElementLockedStorage Maven / Gradle / Ivy

Go to download

Constains all classes necessary for launching a MxCache-instrumentated application

There is a newer version: 2.6.9
Show newest version
/*
 * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
 */
package com.maxifier.mxcache.storage.elementlocked;

import com.maxifier.mxcache.storage.*;

/**
 * THIS IS GENERATED CLASS! DON'T EDIT IT MANUALLY!
 *
 * GENERATED FROM P2PStorage.template
 *
 * 

* This is a basic implementation of cache storage. It is very similar to a usual map. * It supports two main operations: load and save for corresponding key and value types. *

* The content of the storage should not be altered internally between invocations to isCalculated and load. *

* * @author Andrey Yakoushin ([email protected]) * @author Alexander Kochurov ([email protected]) */ public interface LongBooleanElementLockedStorage extends LongBooleanStorage, ElementLockedStorage { /** *

This method is invoked only after corresponding call to isCalculated().

*

It is guaranteed that it would be called with corresponding lock held.

*

The behavior in case of element not present in cache is not defined.

*/ void lock(long key); /** *

This method should save a value to a cache

*

It is guaranteed that it would be called with corresponding lock held.

*/ void unlock(long key); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy