/** * Convenience method for calling {@link #get(Class, int)} with a default timeout. * * @param clazz the class of the {@link Server} to get * @param <W> the type of the {@link Server} to get * @return the {@link Server} instance */ public <W extends T> W get(final Class<W> clazz) { return get(clazz, Constants.DEFAULT_REGISTRY_GET_TIMEOUT_MS); }
/** * Convenience method for calling {@link #get(Class, int)} with a default timeout. * * @param clazz the class of the {@link Server} to get * @param <W> the type of the {@link Server} to get * @return the {@link Server} instance */ public <W extends T> W get(final Class<W> clazz) { return get(clazz, Constants.DEFAULT_REGISTRY_GET_TIMEOUT_MS); }