@Override
        public void run() {
            try {
                this.savedListener.onResult(ResolutionResult.newBuilder()
                        .setAddresses(ImmutableList.of(
                                new EquivalentAddressGroup(getOwnAddress())))
                        .build());
            } catch (final Exception e) {
                this.savedListener.onError(Status.UNAVAILABLE
                        .withDescription("Failed to resolve own address").withCause(e));
            } finally {
                SelfNameResolver.this.syncContext.execute(() -> SelfNameResolver.this.resolving = false);
            }
        }
Creates a new Resolve that stores a snapshot of the relevant states of the resolver.

@param listener The listener to send the results to.
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/nameresolver/SelfNameResolver.java