Interface DataStoreClient
-
- All Superinterfaces:
AutoCloseable
,Identifiable<ClientIdentifier>
@Beta @NonNullByDefault public interface DataStoreClient extends Identifiable<ClientIdentifier>, AutoCloseable
Client interface for interacting with the frontend actor. This interface is the primary access point through which the DistributedDataStore frontend interacts with backend Shards.Keep this interface as clean as possible, as it needs to be implemented in thread-safe and highly-efficient manner.
- Author:
- Robert Varga
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
ClientLocalHistory
createLocalHistory()
Create a new local history.ClientSnapshot
createSnapshot()
Create a new free-standing snapshot.ClientTransaction
createTransaction()
Create a new free-standing transaction.-
Methods inherited from interface org.opendaylight.yangtools.concepts.Identifiable
getIdentifier
-
-
-
-
Method Detail
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
createLocalHistory
ClientLocalHistory createLocalHistory()
Create a new local history. ClientLocalHistory represents the interface exposed to the client.- Returns:
- Client history handle
-
createSnapshot
ClientSnapshot createSnapshot()
Create a new free-standing snapshot.- Returns:
- Client snapshot handle
-
createTransaction
ClientTransaction createTransaction()
Create a new free-standing transaction.- Returns:
- Client transaction handle
-
-