Interface InterVpnLinkCache
-
- All Known Implementing Classes:
InterVpnLinkCacheImpl
public interface InterVpnLinkCache
Manages some utility caches in order to speed (avoid) reads from MD-SAL. InterVpnLink is something that rarely changes and is frequently queried.- Author:
- Thomas Pantelis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addInterVpnLinkStateToCaches(InterVpnLinkState interVpnLinkState)
void
addInterVpnLinkToCaches(InterVpnLink interVpnLink)
@NonNull java.util.List<InterVpnLinkDataComposite>
getAllInterVpnLinks()
com.google.common.base.Optional<InterVpnLinkDataComposite>
getInterVpnLinkByEndpoint(java.lang.String endpointIp)
com.google.common.base.Optional<InterVpnLinkDataComposite>
getInterVpnLinkByName(java.lang.String interVpnLinkName)
com.google.common.base.Optional<InterVpnLinkDataComposite>
getInterVpnLinkByVpnId(java.lang.String vpnId)
void
removeInterVpnLinkFromCache(InterVpnLink interVpnLink)
void
removeInterVpnLinkStateFromCache(InterVpnLinkState interVpnLinkState)
-
-
-
Method Detail
-
addInterVpnLinkToCaches
void addInterVpnLinkToCaches(InterVpnLink interVpnLink)
-
addInterVpnLinkStateToCaches
void addInterVpnLinkStateToCaches(InterVpnLinkState interVpnLinkState)
-
removeInterVpnLinkFromCache
void removeInterVpnLinkFromCache(InterVpnLink interVpnLink)
-
removeInterVpnLinkStateFromCache
void removeInterVpnLinkStateFromCache(InterVpnLinkState interVpnLinkState)
-
getInterVpnLinkByName
com.google.common.base.Optional<InterVpnLinkDataComposite> getInterVpnLinkByName(java.lang.String interVpnLinkName)
-
getInterVpnLinkByEndpoint
com.google.common.base.Optional<InterVpnLinkDataComposite> getInterVpnLinkByEndpoint(java.lang.String endpointIp)
-
getInterVpnLinkByVpnId
com.google.common.base.Optional<InterVpnLinkDataComposite> getInterVpnLinkByVpnId(java.lang.String vpnId)
-
getAllInterVpnLinks
@NonNull java.util.List<InterVpnLinkDataComposite> getAllInterVpnLinks()
-
-