@Beta public class ClientActorContext extends Object implements org.opendaylight.yangtools.concepts.Identifiable<ClientIdentifier>
AbstractClientActor.
Time-keeping in a client actor is based on monotonic time. The precision of this time can be expected to be the
same as System.nanoTime(), but it is not tied to that particular clock. Actor clock is exposed as
a Ticker, which can be obtained via ticker(). This class is thread-safe.
| Modifier and Type | Method and Description |
|---|---|
@NonNull ClientActorConfig |
config() |
@NonNull Dispatchers |
dispatchers() |
<T extends BackendInfo> |
executeInActor(@NonNull InternalCommand<T> command)
Execute a command in the context of the client actor.
|
<T extends BackendInfo> |
executeInActor(@NonNull InternalCommand<T> command,
scala.concurrent.duration.FiniteDuration delay) |
ClientIdentifier |
getIdentifier() |
@NonNull MessageSlicer |
messageSlicer() |
@NonNull akka.actor.ActorRef |
self() |
@NonNull com.google.common.base.Ticker |
ticker()
Return the time ticker for this
ClientActorContext. |
public ClientIdentifier getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<ClientIdentifier>public @NonNull ClientActorConfig config()
public @NonNull Dispatchers dispatchers()
public @NonNull MessageSlicer messageSlicer()
public @NonNull com.google.common.base.Ticker ticker()
ClientActorContext. This should be used for in all time-tracking
done within a client actor. Subclasses of ClientActorBehavior are encouraged to use
Stopwatch.public <T extends BackendInfo> void executeInActor(@NonNull InternalCommand<T> command)
T - BackendInfo typecommand - Block of code which needs to be executepublic <T extends BackendInfo> akka.actor.Cancellable executeInActor(@NonNull InternalCommand<T> command, scala.concurrent.duration.FiniteDuration delay)
public final @NonNull akka.actor.ActorRef self()
Copyright © 2019 OpenDaylight. All rights reserved.