Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.cache.pojo.interceptors.dynamic
Class CachedSetInterceptor

    java.lang.Object
      org.jboss.cache.pojo.interceptors.dynamic.AbstractCollectionInterceptor
          org.jboss.cache.pojo.interceptors.dynamic.CachedSetInterceptor

All Implemented Interfaces:
  Cloneable, org.jboss.aop.advice.Interceptor, BaseInterceptor

    public class CachedSetInterceptor

extends AbstractCollectionInterceptor

Set interceptor that delegates underlying impl.

Author:
  Ben Wang

Constructor Summary
`CachedSetInterceptor(PojoCacheImpl cache, Fqn fqn, Class clazz, Set obj)`

Method Summary
`void` | `attach(Fqn fqn, boolean copyToCache)` When we want to associate this proxy with the cache again.
`Object` | `clone()`
`void` | `detach(boolean removeFromCache)` When we want to separate this proxy from the cache.
`Object` | `getCurrentCopy()`
`String` | `getName()`
`Object` | `getSerializationCopy()`
`Object` | `invoke(org.jboss.aop.joinpoint.Invocation invocation)`
`void` | `setInterceptor(org.jboss.aop.advice.Interceptor intcptr)`

Methods inherited from class org.jboss.cache.pojo.interceptors.dynamic.AbstractCollectionInterceptor
`getAopInstance, getBoundProxy, getFqn, isAttached, setAopInstance, setBoundProxy, setFqn, verifyAttached`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CachedSetInterceptor

    public CachedSetInterceptor(PojoCacheImpl cache,
                                Fqn fqn,
                                Class clazz,
                                Set obj)

Method Detail

### clone

    public Object clone()

  Overrides:
    `clone` in class `Object`

### setInterceptor

    public void setInterceptor(org.jboss.aop.advice.Interceptor intcptr)

### getCurrentCopy

    public Object getCurrentCopy()

  Specified by:
    `getCurrentCopy` in class `AbstractCollectionInterceptor`

### attach

    public void attach(Fqn fqn,
                       boolean copyToCache)

  When we want to associate this proxy with the cache again. We will need to translate the in-memory content to the cache store first.

  Overrides:
    `attach` in class `AbstractCollectionInterceptor`

### detach

    public void detach(boolean removeFromCache)

  When we want to separate this proxy from the cache. We will destroy the cache content and copy them to the in-memory copy.

  Overrides:
    `detach` in class `AbstractCollectionInterceptor`

### getSerializationCopy

    public Object getSerializationCopy()

  Specified by:
    `getSerializationCopy` in class `AbstractCollectionInterceptor`

### getName

    public String getName()

### invoke

    public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
                  throws Throwable

  Throws:
    `Throwable`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.