Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.team.core
Interface ICache


public interface ICache

A cache that is associated with a synchronization that allows clients to cache synchronization state related to their model for the duration of the operation. When the context is disposed, the cache will be disposed and any listeners notified.

Since:
3.2
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
 void addCacheListener ( ICacheListener listener)
          Add a listener to the cache that will receive notification when the cache is disposed.
  Object get ( String name)
          Retrieve an object that has been cached with the context
 void put ( String name, Object value)
          Cache the given object with this context.
 void remove ( String name)
          Remove the named object from the cache
 void removeCacheListener ( ICacheListener listener)
          Remove the listener.
 void removeDisposeListener ( ICacheListener listener)
          Deprecated. use removeCacheListener(ICacheListener)
 

Method Detail

put

void put(
String name,
         
Object value)
Cache the given object with this context.

Parameters:
name - the name that uniquely identifies the object
value - the value to be cached.

get

Object get(
String name)
Retrieve an object that has been cached with the context

Parameters:
name - the name of the object
Returns:
the object associated with the name or null

remove

void remove(
String name)
Remove the named object from the cache

Parameters:
name - the name

addCacheListener

void addCacheListener(
ICacheListener listener)
Add a listener to the cache that will receive notification when the cache is disposed. Adding a listener that has already been added has no effect.

Parameters:
listener - the listener to add

removeCacheListener

void removeCacheListener(
ICacheListener listener)
Remove the listener. Removing a listener that is not registered has no effect.

Parameters:
listener - the listener to remove
Since:
3.3

removeDisposeListener

void removeDisposeListener(
ICacheListener listener)
Deprecated. use removeCacheListener(ICacheListener)

Remove the listener. Removing a listener that is not registered has no effect.

Parameters:
listener - the listener to remove

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire