public final class GS4QueryEvent extends Event
Modifier and Type | Class | Description |
---|---|---|
static class |
GS4QueryEvent.QueryResponse |
|
static class |
GS4QueryEvent.QueryType |
The type of query
|
Event.Result
Constructor | Description |
---|---|
GS4QueryEvent(GS4QueryEvent.QueryType queryType,
InetAddress querierAddress,
GS4QueryEvent.QueryResponse response) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
InetAddress |
getQuerierAddress() |
Get querier address
|
GS4QueryEvent.QueryType |
getQueryType() |
Get query type
|
GS4QueryEvent.QueryResponse |
getResponse() |
Get query response
|
void |
setResponse(GS4QueryEvent.QueryResponse response) |
Set query response
|
String |
toString() |
callEvent, getEventName, isAsynchronous
public GS4QueryEvent(@NotNull GS4QueryEvent.QueryType queryType, @NotNull InetAddress querierAddress, @NotNull GS4QueryEvent.QueryResponse response)
@NotNull public GS4QueryEvent.QueryType getQueryType()
@NotNull public InetAddress getQuerierAddress()
@NotNull public GS4QueryEvent.QueryResponse getResponse()
public void setResponse(@NotNull GS4QueryEvent.QueryResponse response)
response
- query response@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.