org.infinispan.configuration.cache
Class InterceptorConfigurationBuilder

java.lang.Object
  extended by org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder<InterceptorConfiguration>
      extended by org.infinispan.configuration.cache.InterceptorConfigurationBuilder
All Implemented Interfaces:
ConfigurationChildBuilder

public class InterceptorConfigurationBuilder
extends AbstractCustomInterceptorsConfigurationChildBuilder<InterceptorConfiguration>

This builder defines details of a specific custom interceptor.


Method Summary
 InterceptorConfigurationBuilder after(Class<? extends CommandInterceptor> after)
          Dictates that the custom interceptor appears immediately after the specified interceptor.
 InterceptorConfigurationBuilder before(Class<? extends CommandInterceptor> before)
          Dictates that the custom interceptor appears immediately before the specified interceptor.
 Configuration build()
           
 ClusteringConfigurationBuilder clustering()
           
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
protected  ConfigurationBuilder getBuilder()
           
 InterceptorConfigurationBuilder index(int i)
          Specifies a position in the interceptor chain to place the new interceptor.
 IndexingConfigurationBuilder indexing()
           
 InterceptorConfigurationBuilder interceptor(CommandInterceptor interceptor)
          An instance of the new custom interceptor to add to the configuration.
 InvocationBatchingConfigurationBuilder invocationBatching()
           
 JMXStatisticsConfigurationBuilder jmxStatistics()
           
 LoadersConfigurationBuilder loaders()
           
 LockingConfigurationBuilder locking()
           
 InterceptorConfigurationBuilder position(InterceptorConfiguration.Position p)
          Specifies a position, denoted by the InterceptorConfiguration.Position enumeration, where to place the new interceptor.
 InterceptorConfigurationBuilder read(InterceptorConfiguration template)
           
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 String toString()
           
 TransactionConfigurationBuilder transaction()
           
 UnsafeConfigurationBuilder unsafe()
           
 VersioningConfigurationBuilder versioning()
           
 
Methods inherited from class org.infinispan.configuration.cache.AbstractCustomInterceptorsConfigurationChildBuilder
getCustomInterceptorsBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

after

public InterceptorConfigurationBuilder after(Class<? extends CommandInterceptor> after)
Dictates that the custom interceptor appears immediately after the specified interceptor. If the specified interceptor is not found in the interceptor chain, a ConfigurationException will be thrown when the cache starts.

Parameters:
after - the class of the interceptor to look for

before

public InterceptorConfigurationBuilder before(Class<? extends CommandInterceptor> before)
Dictates that the custom interceptor appears immediately before the specified interceptor. If the specified interceptor is not found in the interceptor chain, a ConfigurationException will be thrown when the cache starts.

Parameters:
before - the class of the interceptor to look for

interceptor

public InterceptorConfigurationBuilder interceptor(CommandInterceptor interceptor)
An instance of the new custom interceptor to add to the configuration.

Parameters:
interceptor - an instance of CommandInterceptor

index

public InterceptorConfigurationBuilder index(int i)
Specifies a position in the interceptor chain to place the new interceptor. The index starts at 0 and goes up to the number of interceptors in a given configuration. A ConfigurationException is thrown if the index is less than 0 or greater than the maximum number of interceptors in the chain.

Parameters:
i - positional index in the interceptor chain to place the new interceptor.

position

public InterceptorConfigurationBuilder position(InterceptorConfiguration.Position p)
Specifies a position, denoted by the InterceptorConfiguration.Position enumeration, where to place the new interceptor.

Parameters:
p - position to place the new interceptor

read

public InterceptorConfigurationBuilder read(InterceptorConfiguration template)

toString

public String toString()
Overrides:
toString in class Object

clustering

public ClusteringConfigurationBuilder clustering()
Specified by:
clustering in interface ConfigurationChildBuilder

customInterceptors

public CustomInterceptorsConfigurationBuilder customInterceptors()
Specified by:
customInterceptors in interface ConfigurationChildBuilder

dataContainer

public DataContainerConfigurationBuilder dataContainer()
Specified by:
dataContainer in interface ConfigurationChildBuilder

deadlockDetection

public DeadlockDetectionConfigurationBuilder deadlockDetection()
Specified by:
deadlockDetection in interface ConfigurationChildBuilder

eviction

public EvictionConfigurationBuilder eviction()
Specified by:
eviction in interface ConfigurationChildBuilder

expiration

public ExpirationConfigurationBuilder expiration()
Specified by:
expiration in interface ConfigurationChildBuilder

indexing

public IndexingConfigurationBuilder indexing()
Specified by:
indexing in interface ConfigurationChildBuilder

invocationBatching

public InvocationBatchingConfigurationBuilder invocationBatching()
Specified by:
invocationBatching in interface ConfigurationChildBuilder

jmxStatistics

public JMXStatisticsConfigurationBuilder jmxStatistics()
Specified by:
jmxStatistics in interface ConfigurationChildBuilder

loaders

public LoadersConfigurationBuilder loaders()
Specified by:
loaders in interface ConfigurationChildBuilder

locking

public LockingConfigurationBuilder locking()
Specified by:
locking in interface ConfigurationChildBuilder

storeAsBinary

public StoreAsBinaryConfigurationBuilder storeAsBinary()
Specified by:
storeAsBinary in interface ConfigurationChildBuilder

transaction

public TransactionConfigurationBuilder transaction()
Specified by:
transaction in interface ConfigurationChildBuilder

versioning

public VersioningConfigurationBuilder versioning()
Specified by:
versioning in interface ConfigurationChildBuilder

unsafe

public UnsafeConfigurationBuilder unsafe()
Specified by:
unsafe in interface ConfigurationChildBuilder

getBuilder

protected ConfigurationBuilder getBuilder()

build

public Configuration build()
Specified by:
build in interface ConfigurationChildBuilder

-->

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