public static interface CacheType.Builder
| Modifier and Type | Method and Description |
|---|---|
CacheType |
build() |
DefaultCache |
Default() |
CacheType.Builder |
Default(DefaultCache Default) |
MultiThreadedCache |
MultiThreaded() |
CacheType.Builder |
MultiThreaded(MultiThreadedCache MultiThreaded) |
NoCache |
No() |
CacheType.Builder |
No(NoCache No) |
SingleThreadedCache |
SingleThreaded() |
CacheType.Builder |
SingleThreaded(SingleThreadedCache SingleThreaded) |
StormTrackingCache |
StormTracking() |
CacheType.Builder |
StormTracking(StormTrackingCache StormTracking) |
CacheType.Builder Default(DefaultCache Default)
Default - The best choice for most situations. Probably a StormTrackingCache.DefaultCache Default()
CacheType.Builder No(NoCache No)
No - Nothing should ever be cached.NoCache No()
CacheType.Builder SingleThreaded(SingleThreadedCache SingleThreaded)
SingleThreaded - A cache that is NOT safe for use in a multi threaded environment.SingleThreadedCache SingleThreaded()
CacheType.Builder MultiThreaded(MultiThreadedCache MultiThreaded)
MultiThreaded - A cache that is safe for use in a multi threaded environment, but no extra functionality.MultiThreadedCache MultiThreaded()
CacheType.Builder StormTracking(StormTrackingCache StormTracking)
StormTracking - A cache that is safe for use in a multi threaded environment,
and tries to prevent redundant or overly parallel backend calls.StormTrackingCache StormTracking()
CacheType build()