Class ForgetfulExchangeStore
java.lang.Object
com.predic8.membrane.core.exchangestore.ForgetfulExchangeStore
- All Implemented Interfaces:
ExchangeStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcollect(ExchangeCollector collector) Object[]List<? extends ClientStatistics>getExchangeById(long intParam) getExchanges(RuleKey ruleKey) getFilteredSortedPaged(QueryParameter params, boolean useXForwardedForAsClientAddr) longObject[]getLatExchanges(int count) intgetNumberOfExchanges(RuleKey ruleKey) getStatistics(RuleKey ruleKey) voidvoidnotifyListenersOnExchangeAdd(Rule rule, AbstractExchange exchange) voidvoidnotifyListenersOnRuleAdd(Rule rule) voidnotifyListenersOnRuleRemoval(Rule rule, int rulesLeft) voidvoidremove(AbstractExchange exchange) voidremoveAllExchanges(AbstractExchange[] exchanges) voidremoveAllExchanges(Rule rule) voidvoidsnap(AbstractExchange exchange, Interceptor.Flow flow) Adds the current state of the exchange to the store.voidwaitForModification(long lastKnownModification) Returns immediately if lastKnownModification is smaller than last known modification.
-
Constructor Details
-
ForgetfulExchangeStore
public ForgetfulExchangeStore()
-
-
Method Details
-
snap
Description copied from interface:ExchangeStoreAdds the current state of the exchange to the store.Implementations should take a snapshot of the current state of the request (or response) headers and register a body observer in which they will be called back as soon as the body has fully been received.
If flow==REQUEST, the request is added. Elsewise, the response is added (if present).
- Specified by:
snapin interfaceExchangeStore
-
addExchangesStoreListener
- Specified by:
addExchangesStoreListenerin interfaceExchangeStore
-
getExchanges
- Specified by:
getExchangesin interfaceExchangeStore
-
getNumberOfExchanges
- Specified by:
getNumberOfExchangesin interfaceExchangeStore
-
getStatistics
- Specified by:
getStatisticsin interfaceExchangeStore
-
notifyListenersOnExchangeAdd
- Specified by:
notifyListenersOnExchangeAddin interfaceExchangeStore
-
notifyListenersOnExchangeRemoval
- Specified by:
notifyListenersOnExchangeRemovalin interfaceExchangeStore
-
notifyListenersOnRuleAdd
-
notifyListenersOnRuleRemoval
-
refreshExchangeStoreListeners
public void refreshExchangeStoreListeners()- Specified by:
refreshExchangeStoreListenersin interfaceExchangeStore
-
remove
- Specified by:
removein interfaceExchangeStore
-
removeAllExchanges
- Specified by:
removeAllExchangesin interfaceExchangeStore
-
removeExchangesStoreListener
- Specified by:
removeExchangesStoreListenerin interfaceExchangeStore
-
getAllExchanges
- Specified by:
getAllExchangesin interfaceExchangeStore
-
getLatExchanges
-
getAllExchangesAsList
- Specified by:
getAllExchangesAsListin interfaceExchangeStore
-
removeAllExchanges
- Specified by:
removeAllExchangesin interfaceExchangeStore
-
getExchangeById
- Specified by:
getExchangeByIdin interfaceExchangeStore
-
init
- Specified by:
initin interfaceExchangeStore- Throws:
Exception
-
getClientStatistics
- Specified by:
getClientStatisticsin interfaceExchangeStore
-
collect
- Specified by:
collectin interfaceExchangeStore
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceExchangeStore
-
waitForModification
public void waitForModification(long lastKnownModification) Description copied from interface:ExchangeStoreReturns immediately if lastKnownModification is smaller than last known modification. Otherwise it waits until a modification occurs.- Specified by:
waitForModificationin interfaceExchangeStore
-
getFilteredSortedPaged
public ExchangeQueryResult getFilteredSortedPaged(QueryParameter params, boolean useXForwardedForAsClientAddr) throws Exception - Specified by:
getFilteredSortedPagedin interfaceExchangeStore- Throws:
Exception
-