Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.storemate.store;
 
 
Interface that defines callback used for allowing atomic operations (usually of form "GET,modify,PUT") against store. Locking only limits competing write methods (atomic and simple PUTs), not read operations.

Parameters:
<IN> Type of argument that is passed through
<OUT> Type of return value
public interface StoreOperationCallback<IN,OUT>
{
    
Callback method called in context of write lock.

Parameters:
key Key of entry being modified
backend Backend store used for physical access
arg Optional argument to pass
Returns:
Return value from operation, if any
    public OUT perform(StorableKey keyStoreBackend backend, IN arg)
            throws IOExceptionStoreException;
New to GrepCode? Check out our FAQ X