Class AbstractExchangeStore
java.lang.Object
com.predic8.membrane.core.exchangestore.AbstractExchangeStore
- All Implemented Interfaces:
ExchangeStore
- Direct Known Subclasses:
ElasticSearchExchangeStore,FileExchangeStore,LimitedMemoryExchangeStore,MemoryExchangeStore
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcollect(ExchangeCollector collector) List<? extends ClientStatistics>getExchangeById(long id) getFilteredSortedPaged(QueryParameter params, boolean useXForwardedForAsClientAddr) longprotected static intgetMax(QueryParameter params, List<AbstractExchange> exchanges) voidvoidnotifyListenersOnExchangeAdd(Rule rule, AbstractExchange exchange) voidprotected static booleanpathContains(String search, AbstractExchange e) voidvoidprotected static booleanrequestHeaderContains(String search, AbstractExchange e) protected static booleanresponseHeaderContains(String search, AbstractExchange e) voidwaitForModification(long lastKnownModification) Returns immediately if lastKnownModification is smaller than last known modification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.predic8.membrane.core.exchangestore.ExchangeStore
getAllExchanges, getAllExchangesAsList, getExchanges, getNumberOfExchanges, getStatistics, remove, removeAllExchanges, removeAllExchanges, snap
-
Field Details
-
exchangesStoreListeners
-
-
Constructor Details
-
AbstractExchangeStore
public AbstractExchangeStore()
-
-
Method Details
-
addExchangesStoreListener
- Specified by:
addExchangesStoreListenerin interfaceExchangeStore
-
removeExchangesStoreListener
- Specified by:
removeExchangesStoreListenerin interfaceExchangeStore
-
refreshExchangeStoreListeners
public void refreshExchangeStoreListeners()- Specified by:
refreshExchangeStoreListenersin interfaceExchangeStore
-
notifyListenersOnExchangeAdd
- Specified by:
notifyListenersOnExchangeAddin interfaceExchangeStore
-
notifyListenersOnExchangeRemoval
- Specified by:
notifyListenersOnExchangeRemovalin interfaceExchangeStore
-
getExchangeById
- Specified by:
getExchangeByIdin interfaceExchangeStore
-
getClientStatistics
- Specified by:
getClientStatisticsin interfaceExchangeStore
-
init
- Specified by:
initin interfaceExchangeStore
-
collect
- Specified by:
collectin interfaceExchangeStore
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceExchangeStore
-
waitForModification
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- Throws:
InterruptedException
-
getFilteredSortedPaged
public ExchangeQueryResult getFilteredSortedPaged(QueryParameter params, boolean useXForwardedForAsClientAddr) throws Exception - Specified by:
getFilteredSortedPagedin interfaceExchangeStore- Throws:
Exception
-
getMax
-
pathContains
-
requestHeaderContains
-
responseHeaderContains
-