org.jboss.cache.interceptors
Class CreateIfNotExistsInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by org.jboss.cache.interceptors.CreateIfNotExistsInterceptor
All Implemented Interfaces:
InterceptorMBean

Deprecated. This code is not used anymore and will be removed in a future release

public class CreateIfNotExistsInterceptor
extends Interceptor

Handles putXXX() methods: if the given node doesn't exist, it will be created (depending on the create_if_not_exists argument)

Version:
$Id: CreateIfNotExistsInterceptor.java,v 1.8 2006/03/15 16:02:38 genman Exp $
Author:
Bela Ban

Constructor Summary
CreateIfNotExistsInterceptor()
          Deprecated.  
 
Method Summary
 java.lang.Object invoke(org.jgroups.blocks.MethodCall m)
          Deprecated. Synchronize between put(), remove() and evict() methods.
 void setCache(TreeCache cache)
          Deprecated.  
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
dumpStatistics, getInvocationContext, getNext, getStatisticsEnabled, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isTransactionLifecycleMethod, isValid, resetStatistics, setInvocationContext, setNext, setStatisticsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateIfNotExistsInterceptor

public CreateIfNotExistsInterceptor()
Deprecated. 
Method Detail

setCache

public void setCache(TreeCache cache)
Deprecated. 
Overrides:
setCache in class Interceptor

invoke

public java.lang.Object invoke(org.jgroups.blocks.MethodCall m)
                        throws java.lang.Throwable
Deprecated. 
Synchronize between put(), remove() and evict() methods. This is coarse-grained, and should be replaced with FQN-based synchronization, e.g. put("/1/2/3" should not synchronize with remove("/a/b/c").

Overrides:
invoke in class Interceptor
Parameters:
m -
Returns:
Throws:
java.lang.Throwable


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.