@Singleton public class AclInterfaceCacheImpl extends Object implements AclInterfaceCache
| Constructor and Description | 
|---|
AclInterfaceCacheImpl()  | 
| Modifier and Type | Method and Description | 
|---|---|
AclInterface | 
addOrUpdate(String interfaceId,
           BiConsumer<AclInterface,AclInterface.Builder> updateFunction)
Adds a new AclInterface if not already existing, otherwise updates the existing instance. 
 | 
Collection<Map.Entry<String,AclInterface>> | 
entries()  | 
AclInterface | 
get(String interfaceId)
Gets an AclInterface instance from the cache if present. 
 | 
AclInterface | 
remove(String interfaceId)
Removes an AclInterface instance from the cache. 
 | 
AclInterface | 
updateIfPresent(String interfaceId,
               BiFunction<AclInterface,AclInterface.Builder,Boolean> updateFunction)
Updates an existing AclInterface instance in the cache. 
 | 
public AclInterface addOrUpdate(@Nonnull String interfaceId, BiConsumer<AclInterface,AclInterface.Builder> updateFunction)
AclInterfaceCacheaddOrUpdate in interface AclInterfaceCacheinterfaceId - the interface IdupdateFunction - the function used to build a new instance from the provided AclInterface.Builder. If an
                       instance already exists in the cache, the previous instance is passed to the function and
                       the Builder is initially populated from the existing instance.public AclInterface updateIfPresent(String interfaceId, BiFunction<AclInterface,AclInterface.Builder,Boolean> updateFunction)
AclInterfaceCacheupdateIfPresent in interface AclInterfaceCacheinterfaceId - the interface IdupdateFunction - the function used to build a new instance from the provided AclInterface.Builder. The
                       previous instance is passed to the function and the Builder is initially populated from
                       the existing instance. The function returns a boolean indicating if any updates were
                       actually made.public AclInterface remove(String interfaceId)
AclInterfaceCacheremove in interface AclInterfaceCacheinterfaceId - the interface Idpublic AclInterface get(String interfaceId)
AclInterfaceCacheget in interface AclInterfaceCacheinterfaceId - the interface Idpublic Collection<Map.Entry<String,AclInterface>> entries()
entries in interface AclInterfaceCacheCopyright © 2019 OpenDaylight. All rights reserved.