public class MetaserverProcessor
extends java.lang.Object
MetaserverModel
instance. Queries are performed regularly every UPDATE_INTERVAL
but
not faster than MIN_UPDATE_INTERVAL
. Queries can be stopped when the
server selection GUI is left (disable()
; a call to query()
automatically re-starts queries.Constructor and Description |
---|
MetaserverProcessor(@NotNull com.realtime.crossfire.jxclient.metaserver.Metaserver metaserver,
@NotNull com.realtime.crossfire.jxclient.guistate.GuiStateManager guiStateManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disables periodic re-queries.
|
void |
query()
Immediately triggers a metaserver query and enables periodic re-queries.
|
public MetaserverProcessor(@NotNull @NotNull com.realtime.crossfire.jxclient.metaserver.Metaserver metaserver, @NotNull @NotNull com.realtime.crossfire.jxclient.guistate.GuiStateManager guiStateManager)
metaserver
- the metaserver instance to forward toguiStateManager
- the gui state manager to watchpublic void query()
public void disable()
query()
.