Package com.gigaspaces.server.eviction
Interface SpaceEvictionManager
- All Known Implementing Classes:
CacheManager
public interface SpaceEvictionManager
Provides services with which an
SpaceEvictionStrategy implementation can evict entries
from the space.- Since:
- 9.1
- Author:
- Yechiel Feffer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleantryEvict(EvictableServerEntry entry) Attempts to evict the specified entry from the space.
-
Method Details
-
tryEvict
Attempts to evict the specified entry from the space. If the entry cannot be evicted (for example, if the entry is currently locked by another operation) false will be returned. Otherwise the entry will be evicted from the space, theSpaceEvictionStrategy.onRemove(EvictableServerEntry)method will be invoked and true will be returned.- Parameters:
entry- The entry to evict.- Returns:
- true If the entry was evicted, false otherwise.
-