Package org.gnome.gio
Class Resolver.Builder<B extends Resolver.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.Resolver.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
ThreadedResolver.Builder
- Enclosing class:
Resolver
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theResolverobject.onReload(Resolver.ReloadCallback handler) Emitted when the resolver notices that the system resolver configuration has changed.setTimeout(int timeout) The timeout applied to all resolver lookups, in milliseconds.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theResolverobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toResolver.- Overrides:
buildin classGObject.Builder<B extends Resolver.Builder<B>>- Returns:
- a new instance of
Resolverwith the properties that were set in the Builder object.
-
setTimeout
The timeout applied to all resolver lookups, in milliseconds.This may be changed through the lifetime of the
GResolver. The new value will apply to any lookups started after the change, but not to any already-ongoing lookups.If this is
0, no timeout is applied to lookups.No timeout was applied to lookups before this property was added in GLib 2.78.
- Parameters:
timeout- the value for thetimeoutproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.78
-
onReload
Emitted when the resolver notices that the system resolver configuration has changed.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-