- @SuppressFBWarnings(value = "SE_BAD_FIELD", justification = "We deal with the field in serialization methods.")
- private final Set<DOMRpcIdentifier> rpcs;
- private final ActorRef rpcInvoker;
-
- RoutingTable(final ActorRef rpcInvoker, final Collection<DOMRpcIdentifier> table) {
- this.rpcInvoker = Preconditions.checkNotNull(rpcInvoker);
- this.rpcs = ImmutableSet.copyOf(table);
- }
-
- @Override
- public Optional<ActorRef> getWatchActor() {
- return Optional.of(rpcInvoker);
- }
-
- public Set<DOMRpcIdentifier> getRoutes() {
- return rpcs;
- }
-
- ActorRef getRpcInvoker() {
- return rpcInvoker;