public final class NatsStreaming
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static StreamingConnection |
connect(java.lang.String clusterId,
java.lang.String clientId)
Creates a NATS Streaming connection using the supplied cluster ID and client ID.
|
static StreamingConnection |
connect(java.lang.String clusterId,
java.lang.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(java.lang.String clusterId, java.lang.String clientId) throws java.io.IOException, java.lang.InterruptedException
clusterId
- the NATS Streaming cluster IDclientId
- the NATS Streaming client IDStreamingConnection
java.io.IOException
- if a problem occursjava.lang.InterruptedException
- if the calling thread is interrupted before the connection
attempt succeedspublic static StreamingConnection connect(java.lang.String clusterId, java.lang.String clientId, Options opts) throws java.io.IOException, java.lang.InterruptedException
Options
.clusterId
- the NATS Streaming cluster IDclientId
- the NATS Streaming client IDopts
- the configuration Options
StreamingConnection
java.io.IOException
- if a problem occursjava.lang.InterruptedException
- if the calling thread is interrupted before the connection
attempt succeeds