public class SubscriptionOptions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SubscriptionOptions.Builder
A Builder implementation for creating an immutable
SubscriptionOptions object. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Duration |
getAckWait()
Returns the timeout for waiting for an ACK from the cluster's point of view for delivered
messages.
|
String |
getDurableName()
Returns the name of the durable subscriber.
|
int |
getMaxInFlight()
Returns the maximum number of messages the cluster will send without an ACK.
|
io.nats.streaming.protobuf.StartPosition |
getStartAt()
Returns the desired start position for the message stream.
|
long |
getStartSequence()
Returns the desired start sequence position.
|
Instant |
getStartTime()
Returns the desired start time position.
|
long |
getStartTime(TimeUnit unit)
Returns the desired start time position in the requested units.
|
int |
hashCode() |
boolean |
isManualAcks()
Returns whether or not messages for this subscription must be acknowledged individually by
calling
Message.ack(). |
String |
toString() |
public String getDurableName()
public int getMaxInFlight()
public Duration getAckWait()
public io.nats.streaming.protobuf.StartPosition getStartAt()
public long getStartSequence()
public Instant getStartTime()
public long getStartTime(TimeUnit unit)
unit - the unit of timepublic boolean isManualAcks()
Message.ack().Copyright © 2016–2018 NATS.io. All rights reserved.