ehcache

net.sf.ehcache.config
Class PinningConfiguration

java.lang.Object
  extended by net.sf.ehcache.config.PinningConfiguration
All Implemented Interfaces:
Cloneable

public class PinningConfiguration
extends Object
implements Cloneable

Class to hold the Pinning configuration.

Author:
Ludovic Orban

Nested Class Summary
static class PinningConfiguration.Store
          Possible store values
 
Constructor Summary
PinningConfiguration()
           
 
Method Summary
 PinningConfiguration.Store getStore()
          Return the lowest store from which elements must not be evicted from
 void setStore(String store)
          Set the store scope
 PinningConfiguration store(PinningConfiguration.Store store)
          Set the lowest store from which elements must not be evicted from
 PinningConfiguration store(String store)
          Set the lowest store from which elements must not be evicted from
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PinningConfiguration

public PinningConfiguration()
Method Detail

setStore

public void setStore(String store)
Set the store scope

Parameters:
store - the storage scope

store

public PinningConfiguration store(String store)
Set the lowest store from which elements must not be evicted from

Parameters:
store - the store, encoded as a string
Returns:
this

store

public PinningConfiguration store(PinningConfiguration.Store store)
Set the lowest store from which elements must not be evicted from

Parameters:
store - the store
Returns:
this

getStore

public PinningConfiguration.Store getStore()
Return the lowest store from which elements must not be evicted from

Returns:
the lowest store from which elements must not be evicted from

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.