Interface BGPTableTypeRegistryConsumer
- All Known Subinterfaces:
BGPTableTypeRegistryProvider
- All Known Implementing Classes:
DefaultBGPTableTypeRegistryConsumer
public interface BGPTableTypeRegistryConsumer
Provides access to BGP AFI/SAFI registry.
-
Method Summary
Modifier and TypeMethodDescription@Nullable AfiSafiType
getAfiSafiType
(@NonNull BgpTableType bgpTableType) Looks for AfiSafiType based on BgpTableType.@Nullable AfiSafiType
getAfiSafiType
(@NonNull TablesKey tablesKey) Looks for AfiSafiType based on TablesKey.@Nullable TablesKey
getTableKey
(@NonNull AfiSafiType afiSafiType) Looks for BgpTableType based on OpenConfig AFI/SAFI.@Nullable BgpTableType
getTableType
(@NonNull AfiSafiType afiSafiType) Looks for BgpTableType based on OpenConfig AFI/SAFI.static @NonNull BGPTableTypeRegistryConsumer
of
(Collection<BGPTableTypeRegistryProviderActivator> extensionActivators) Create an immutable BGPTableTypeRegistryConsumer.static @NonNull BGPTableTypeRegistryConsumer
of
(BGPTableTypeRegistryProviderActivator... extensionActivators) Create an immutable BGPTableTypeRegistryConsumer.
-
Method Details
-
getTableType
Looks for BgpTableType based on OpenConfig AFI/SAFI.- Parameters:
afiSafiType
- afiSafi Type- Returns:
- Optional of BgpTableType or empty, if the table type is not supported.
-
getTableKey
Looks for BgpTableType based on OpenConfig AFI/SAFI.- Parameters:
afiSafiType
- afiSafi Type- Returns:
- Optional of TableKey or empty, if the table type is not supported.
-
getAfiSafiType
Looks for AfiSafiType based on BgpTableType.- Parameters:
bgpTableType
- Bgp TableType- Returns:
- Optional of OpenConfig AFI/SAFI or empty, if the table type is not supported.
-
getAfiSafiType
Looks for AfiSafiType based on TablesKey.- Parameters:
tablesKey
- Tables Key- Returns:
- Optional of OpenConfig AFI/SAFI or empty, if the table type is not supported.
-
of
static @NonNull BGPTableTypeRegistryConsumer of(BGPTableTypeRegistryProviderActivator... extensionActivators) Create an immutable BGPTableTypeRegistryConsumer.- Parameters:
extensionActivators
- Activators to use to populate the consumer- Returns:
- An immutable instance
-
of
static @NonNull BGPTableTypeRegistryConsumer of(Collection<BGPTableTypeRegistryProviderActivator> extensionActivators) Create an immutable BGPTableTypeRegistryConsumer.- Parameters:
extensionActivators
- Activators to use to populate the consumer- Returns:
- An immutable instance
-