public class Chirp
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PAYLOAD_BYTES
The maximum size of a payload when serialized into JSON.
|
| Modifier and Type | Method and Description |
|---|---|
static ChirpBrowser.Builder |
browseFor(java.lang.String serviceName)
Convenience method for creating a
ChirpBrowser. |
static boolean |
isValidServiceName(java.lang.String name)
Checks if name can be used as a Chirp service name.
|
static ChirpPublisher.Builder |
publish(java.lang.String serviceName)
Convenience method for creating a
ChirpPublisher. |
public static final int MAX_PAYLOAD_BYTES
public static ChirpBrowser.Builder browseFor(@NonNull java.lang.String serviceName)
ChirpBrowser.serviceName - the name of the service to browse/listen for. Pass in "*" if you want
to listen for all services on the networkChirpBrowser.Builderpublic static boolean isValidServiceName(java.lang.String name)
name - the string to test for validitypublic static ChirpPublisher.Builder publish(@NonNull java.lang.String serviceName)
ChirpPublisher.serviceName - the name of the service to publishBuilder that can be configured further or used to start and return
the ChirpPublisher