org.springframework.batch.admin.util
Class SimpleEhCacheInterceptor
java.lang.Object
org.springframework.batch.admin.util.SimpleEhCacheInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, DisposableBean, InitializingBean, Lifecycle
@ManagedResource
public class SimpleEhCacheInterceptor
- extends Object
- implements org.aopalliance.intercept.MethodInterceptor, InitializingBean, DisposableBean, Lifecycle
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleEhCacheInterceptor
public SimpleEhCacheInterceptor()
setTimeout
public void setTimeout(int timeout)
- The expiry timeout of cache entries (a.k.a. time to live) in seconds.
Default 60.
- Parameters:
timeout - in seconds
setCacheName
public void setCacheName(String name)
- The name of the cache used internally by EhCache. Defaults to
simple.
- Parameters:
name - the cache name to set
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
destroy
public void destroy()
throws Exception
- Specified by:
destroy in interface DisposableBean
- Throws:
Exception
invoke
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
- Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
start
@ManagedOperation
public void start()
- Specified by:
start in interface Lifecycle
stop
@ManagedOperation
public void stop()
- Specified by:
stop in interface Lifecycle
isRunning
@ManagedAttribute
public boolean isRunning()
- Specified by:
isRunning in interface Lifecycle
Copyright © 2011. All Rights Reserved.