Package com.adaptris.core.interceptor
Interface TimeSliceCacheProvider
-
- All Known Implementing Classes:
TimeSliceAbstractCacheProvider
,TimeSliceDefaultCacheProvider
public interface TimeSliceCacheProvider
interface for caching timeslices.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimeSlice
get(java.lang.String cacheName)
Will return the current time slice.void
init()
Once the adapter component initializes, any interceptors including any cache providers will also be initialized.void
start()
Once the adapter component starts, any interceptors including any cache providers will also be started.void
stop()
Once the adapter component stops, any interceptors including any cache providers will also be stopped.void
update(java.lang.String cacheName, TimeSlice timeslice)
Will persist the time slice for later retrieval.
-
-
-
Method Detail
-
start
void start() throws CoreException
Once the adapter component starts, any interceptors including any cache providers will also be started.- Throws:
CoreException
-
init
void init() throws CoreException
Once the adapter component initializes, any interceptors including any cache providers will also be initialized.- Throws:
CoreException
-
stop
void stop()
Once the adapter component stops, any interceptors including any cache providers will also be stopped.
-
update
void update(java.lang.String cacheName, TimeSlice timeslice)
Will persist the time slice for later retrieval.
-
get
TimeSlice get(java.lang.String cacheName)
Will return the current time slice.- Returns:
- TimeSlice
-
-