C - The type of data passed to the constructor.public final class TxSpecific<C> extends Object
TxSpecific keeps MD-SAL datastore transaction specific data.| Constructor and Description |
|---|
TxSpecific(Class<C> argType)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all the cached transaction specific data.
|
<T> T |
get(Class<T> type,
C arg)
Return the MD-SAL datastore transaction specific data.
|
public <T> T get(Class<T> type, C arg)
T - The type of transaction specific data.type - A class which specifies the type of data.
Note that the class must have a constructor that takes
one parameter.arg - An argument passed to the constructor of transaction
specific data.type.public void clear()
Copyright © 2018 OpenDaylight. All rights reserved.