public static final class LocalServerReceiver.Builder extends Object
Implementation is not thread-safe.
| Constructor and Description |
|---|
LocalServerReceiver.Builder() |
| Modifier and Type | Method and Description |
|---|---|
LocalServerReceiver |
build()
Builds the
LocalServerReceiver. |
String |
getHost()
Returns the host name to use.
|
int |
getPort()
Returns the port to use or
-1 to select an unused port. |
LocalServerReceiver.Builder |
setHost(String host)
Sets the host name to use.
|
LocalServerReceiver.Builder |
setPort(int port)
Sets the port to use or
-1 to select an unused port. |
public LocalServerReceiver build()
LocalServerReceiver.public String getHost()
public LocalServerReceiver.Builder setHost(String host)
public int getPort()
-1 to select an unused port.public LocalServerReceiver.Builder setPort(int port)
-1 to select an unused port.Copyright © 2011-2015 Google. All Rights Reserved.