public class MasterServerRequest extends AbstractRequest
MasterServerRequest class.
| Constructor and Description |
|---|
MasterServerRequest()
Constructor for MasterServerRequest.
|
MasterServerRequest(TriConsumer<InetSocketAddress,InetSocketAddress,Throwable> callback)
Constructor for MasterServerRequest.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
The last seed address used
|
TriConsumer<InetSocketAddress,InetSocketAddress,Throwable> |
getCallback()
Getter for the field
callback. |
MasterServerFilter |
getFilter()
Getter for the field
filter. |
MasterServerRegion |
getRegion()
Getter for the field
region. |
Integer |
getRequestDelay()
Getter for the field
requestDelay. |
MasterServerType |
getType()
Getter for the field
type. |
void |
setAddress(String address)
Update the seed address to be sent to the remote server.
|
void |
setCallback(TriConsumer<InetSocketAddress,InetSocketAddress,Throwable> callback)
Setter for the field
callback. |
void |
setFilter(MasterServerFilter filter)
Setter for the field
filter. |
void |
setRegion(MasterServerRegion region)
Setter for the field
region. |
void |
setRequestDelay(Integer requestDelay)
Setter for the field
requestDelay. |
void |
setType(MasterServerType type)
Setter for the field
type. |
buildToString, equals, hashCode, id, toStringpublic MasterServerRequest()
Constructor for MasterServerRequest.
public MasterServerRequest(TriConsumer<InetSocketAddress,InetSocketAddress,Throwable> callback)
Constructor for MasterServerRequest.
callback - a TriConsumer objectpublic MasterServerType getType()
Getter for the field type.
MasterServerType objectpublic void setType(MasterServerType type)
Setter for the field type.
type - a MasterServerType objectpublic TriConsumer<InetSocketAddress,InetSocketAddress,Throwable> getCallback()
Getter for the field callback.
TriConsumer objectpublic void setCallback(TriConsumer<InetSocketAddress,InetSocketAddress,Throwable> callback)
Setter for the field callback.
callback - a TriConsumer objectpublic MasterServerRegion getRegion()
Getter for the field region.
MasterServerRegion objectpublic void setRegion(MasterServerRegion region)
Setter for the field region.
region - a MasterServerRegion objectpublic MasterServerFilter getFilter()
Getter for the field filter.
MasterServerFilter objectpublic void setFilter(MasterServerFilter filter)
Setter for the field filter.
filter - a MasterServerFilter objectpublic String getAddress()
<ip:port>public void setAddress(String address)
address - A host string in the format of <ip:port>public Integer getRequestDelay()
Getter for the field requestDelay.
Integer objectCopyright © 2016–2024. All rights reserved.