Class AccountAnalysisCacheKeys
java.lang.Object
com.bluebell.greenhouse.platform.configuration.cache.account.AccountAnalysisCacheKeys
Cache key helpers for account analysis reports.
- Version:
- 3.0.3
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringforPositionDuration(Account account, AnalysisFilter analysisFilter, PositionDurationFilter positionDurationFilter) Builds the cache key for position-duration analysis.static StringforSymbol(Account account, AnalysisFilter analysisFilter) Builds the cache key for symbol analysis.static StringforTimeBucket(Account account, MarketTimeInterval interval, AnalysisFilter analysisFilter, boolean opened) Builds the cache key for time-bucket analysis.static StringforWeekday(Account account, AnalysisFilter analysisFilter) Builds the cache key for weekday analysis.static StringforWeekdayTimeBucket(Account account, DayOfWeek day, MarketTimeInterval interval, AnalysisFilter analysisFilter) Builds the cache key for weekday time-bucket analysis.
-
Method Details
-
forPositionDuration
public static String forPositionDuration(Account account, AnalysisFilter analysisFilter, PositionDurationFilter positionDurationFilter) Builds the cache key for position-duration analysis.- Parameters:
account-AccountanalysisFilter- analysis measurementpositionDurationFilter- position-duration selection- Returns:
- cache key
-
forSymbol
Builds the cache key for symbol analysis.- Parameters:
account-AccountanalysisFilter- analysis measurement- Returns:
- cache key
-
forTimeBucket
public static String forTimeBucket(Account account, MarketTimeInterval interval, AnalysisFilter analysisFilter, boolean opened) Builds the cache key for time-bucket analysis.- Parameters:
account-Accountinterval- market intervalanalysisFilter- analysis measurementopened- whether to analyze opening times- Returns:
- cache key
-
forWeekday
Builds the cache key for weekday analysis.- Parameters:
account-AccountanalysisFilter- analysis measurement- Returns:
- cache key
-
forWeekdayTimeBucket
public static String forWeekdayTimeBucket(Account account, DayOfWeek day, MarketTimeInterval interval, AnalysisFilter analysisFilter) Builds the cache key for weekday time-bucket analysis.- Parameters:
account-Accountday- weekdayinterval- market intervalanalysisFilter- analysis measurement- Returns:
- cache key
-