ehcache

net.sf.ehcache.concurrent
Interface CacheLockProvider

All Known Subinterfaces:
StripedReadWriteLock
All Known Implementing Classes:
StripedReadWriteLockSync

public interface CacheLockProvider

Author:
Alex Snaps

Method Summary
 Sync getSyncForKey(Object key)
          Gets the Sync Stripe to use for a given key.
 

Method Detail

getSyncForKey

Sync getSyncForKey(Object key)
Gets the Sync Stripe to use for a given key.

This lookup must always return the same Sync for a given key.

Parameters:
key - the key
Returns:
one of a limited number of Sync's.

ehcache

Copyright 2001-2014, Terracotta, Inc.