Class AbstractRoutingTable<T extends AbstractRoutingTable<T,I>,I>

java.lang.Object
org.opendaylight.controller.remote.rpc.registry.AbstractRoutingTable<T,I>
Type Parameters:
T - Table type
I - Item type
All Implemented Interfaces:
Serializable, BucketData<T>, 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:
  • Method Details

    • getWatchActor

      public final Optional<ActorRef> getWatchActor()
      Description copied from interface: BucketData
      Return the ActorRef 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 interface BucketData<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()
    • toString

      public final String toString()
      Overrides:
      toString in class Object