GigaSpaces XAP 10.0.1 API

com.gigaspaces.server.eviction
Interface SpaceEvictionManager


public interface SpaceEvictionManager

Provides services with which an SpaceEvictionStrategy implementation can evict entries from the space.

Since:
9.1
Author:
Yechiel Feffer
See Also:
SpaceEvictionStrategy

Method Summary
 boolean tryEvict(EvictableServerEntry entry)
          Attempts to evict the specified entry from the space.
 

Method Detail

tryEvict

boolean tryEvict(EvictableServerEntry entry)
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, the SpaceEvictionStrategy.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.

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.