com.maxifier.mxcache.impl.caches.batch.KeyStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-runtime Show documentation
Show all versions of mxcache-runtime Show documentation
Constains all classes necessary for launching a MxCache-instrumentated application
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.caches.batch;
/**
* @author Alexander Kochurov ([email protected])
*/
interface KeyStrategy {
int size(K key);
I iterator(K k);
E get(int order, I iterator);
K toKey(K list, int count);
boolean isStableOrder();
boolean put(K key, int index, E value);
K create(K expectedType);
}