Class AbstractRoutingTable<T extends AbstractRoutingTable<T,I>,I>
- java.lang.Object
-
- org.opendaylight.controller.remote.rpc.registry.AbstractRoutingTable<T,I>
-
- Type Parameters:
T
- Table typeI
- Item type
- All Implemented Interfaces:
Serializable
,BucketData<T>
,Immutable
,MutationBehaviour<Immutable>
- Direct Known Subclasses:
ActionRoutingTable
,RoutingTable
public abstract class AbstractRoutingTable<T extends AbstractRoutingTable<T,I>,I> extends Object implements BucketData<T>, Serializable
Common class for routing tables.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(I routeId)
@NonNull ImmutableSet<I>
getItems()
Optional<akka.actor.ActorRef>
getWatchActor()
Return theActorRef
which should be tracked as the authoritative source of this bucket's data.int
size()
String
toString()
-
-
-
Method Detail
-
getWatchActor
public final Optional<akka.actor.ActorRef> getWatchActor()
Description copied from interface:BucketData
Return theActorRef
which should be tracked as the authoritative source of this bucket's data. The bucket will be invalidated should the actor be reported as Terminated.- Specified by:
getWatchActor
in interfaceBucketData<T extends AbstractRoutingTable<T,I>>
- Returns:
- Optional ActorRef.
-
getItems
public final @NonNull ImmutableSet<I> getItems()
-
contains
public final boolean contains(I routeId)
-
size
public final int size()
-
-