public final class NatsStreaming extends Object
| Modifier and Type | Method and Description |
|---|---|
static StreamingConnection |
connect(String clusterId,
String clientId)
Creates a NATS Streaming connection using the supplied cluster ID and client ID.
|
static StreamingConnection |
connect(String clusterId,
String clientId,
Options opts)
Creates a NATS Streaming connection using the supplied cluster ID, client ID, and
Options. |
static Options |
defaultOptions()
The default Options settings.
|
public static StreamingConnection connect(String clusterId, String clientId) throws IOException, InterruptedException
clusterId - the NATS Streaming cluster IDclientId - the NATS Streaming client IDStreamingConnectionIOException - if a problem occursInterruptedException - if the calling thread is interrupted before the connection
attempt succeedspublic static StreamingConnection connect(String clusterId, String clientId, Options opts) throws IOException, InterruptedException
Options.clusterId - the NATS Streaming cluster IDclientId - the NATS Streaming client IDopts - the configuration OptionsStreamingConnectionIOException - if a problem occursInterruptedException - if the calling thread is interrupted before the connection
attempt succeedsCopyright © 2016–2018 NATS.io. All rights reserved.