| Package | Description |
|---|---|
| com.rabbitmq.stream | |
| com.rabbitmq.stream.impl |
| Modifier and Type | Method and Description |
|---|---|
static OffsetSpecification |
OffsetSpecification.first()
The first available offset in the stream.
|
static OffsetSpecification |
OffsetSpecification.last()
The last chunk of messages in the stream.
|
static OffsetSpecification |
OffsetSpecification.next()
The next offset to be written, that is the end of the stream.
|
static OffsetSpecification |
OffsetSpecification.offset(long offset)
A specific offset in the stream.
|
OffsetSpecification |
SubscriptionListener.SubscriptionContext.offsetSpecification()
The offset specification computed by the library.
|
static OffsetSpecification |
OffsetSpecification.timestamp(long timestamp)
Offset of messages stored after the specified timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
ConsumerBuilder |
ConsumerBuilder.offset(OffsetSpecification offsetSpecification)
The offset to start consuming from.
|
void |
SubscriptionListener.SubscriptionContext.offsetSpecification(OffsetSpecification offsetSpecification)
Set the offset specification to use for the subscription.
|
| Modifier and Type | Method and Description |
|---|---|
Client.Response |
Client.subscribe(byte subscriptionId,
String stream,
OffsetSpecification offsetSpecification,
int credit)
Subscribe to receive messages from a stream.
|
Client.Response |
Client.subscribe(byte subscriptionId,
String stream,
OffsetSpecification offsetSpecification,
int credit,
Map<String,String> properties)
Subscribe to receive messages from a stream.
|
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.