APIdia Launch Partner
Top Fields Constructors Methods
sun.security.util

pack-priv Class NullCache<K, V>

Located in compilation unit of sun.security.util.Cache.

extends Cache<K, V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final Cache<Object, Object>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
accept(Cache.CacheVisitor<K, V> visitor)

Implements abstract sun.security.util.Cache.accept.

accept a visitor

public void
clear()

Implements abstract sun.security.util.Cache.clear.

Remove all entries from the cache.

public V
get(Object key)

Implements abstract sun.security.util.Cache.get.

Get a value from the cache.

public V
pull(Object key)

Implements abstract sun.security.util.Cache.pull.

Pull an entry from the cache.

public void
put(K key, V value)

Implements abstract sun.security.util.Cache.put.

Add an entry to the cache.

public void
remove(Object key)

Implements abstract sun.security.util.Cache.remove.

Remove an entry from the cache.

public void
setCapacity(int size)

Implements abstract sun.security.util.Cache.setCapacity.

Set the maximum size.

public void
setTimeout(int timeout)

Implements abstract sun.security.util.Cache.setTimeout.

Set the timeout(in seconds).

public int
size()

Implements abstract sun.security.util.Cache.size.

Return the number of currently valid entries in the cache.

Inherited from sun.security.util.Cache:
newHardMemoryCachenewHardMemoryCachenewNullCachenewSoftMemoryCachenewSoftMemoryCachenewSoftMemoryQueueput

Field Detail

INSTANCEback to summary
pack-priv static final Cache<Object, Object> INSTANCE

Constructor Detail

NullCacheback to summary
private NullCache()

Method Detail

acceptback to summary
public void accept(Cache.CacheVisitor<K, V> visitor)

Implements abstract sun.security.util.Cache.accept.

Doc from sun.security.util.Cache.accept.

accept a visitor

clearback to summary
public void clear()

Implements abstract sun.security.util.Cache.clear.

Doc from sun.security.util.Cache.clear.

Remove all entries from the cache.

getback to summary
public V get(Object key)

Implements abstract sun.security.util.Cache.get.

Doc from sun.security.util.Cache.get.

Get a value from the cache.

pullback to summary
public V pull(Object key)

Implements abstract sun.security.util.Cache.pull.

Doc from sun.security.util.Cache.pull.

Pull an entry from the cache.

putback to summary
public void put(K key, V value)

Implements abstract sun.security.util.Cache.put.

Doc from sun.security.util.Cache.put.

Add an entry to the cache.

removeback to summary
public void remove(Object key)

Implements abstract sun.security.util.Cache.remove.

Doc from sun.security.util.Cache.remove.

Remove an entry from the cache.

setCapacityback to summary
public void setCapacity(int size)

Implements abstract sun.security.util.Cache.setCapacity.

Doc from sun.security.util.Cache.setCapacity.

Set the maximum size.

setTimeoutback to summary
public void setTimeout(int timeout)

Implements abstract sun.security.util.Cache.setTimeout.

Doc from sun.security.util.Cache.setTimeout.

Set the timeout(in seconds).

sizeback to summary
public int size()

Implements abstract sun.security.util.Cache.size.

Doc from sun.security.util.Cache.size.

Return the number of currently valid entries in the cache.