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 booleancontains(I routeId)@NonNull ImmutableSet<I>getItems()Optional<ActorRef>getWatchActor()Return theActorRefwhich should be tracked as the authoritative source of this bucket's data.intsize()StringtoString()
-
-
-
Method Detail
-
getWatchActor
public final Optional<ActorRef> getWatchActor()
Description copied from interface:BucketDataReturn theActorRefwhich 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:
getWatchActorin 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()
-
-