Package org.gnome.gio
Class Resolver.Builder<B extends Resolver.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theResolver
object.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
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theResolver
object. 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:
build
in classGObject.Builder<B extends Resolver.Builder<B>>
- Returns:
- a new instance of
Resolver
with 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 thetimeout
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onReload
Emitted when the resolver notices that the system resolver configuration has changed.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-