Class AckRequestData (1.133.1)

public class AckRequestData

Inheritance

java.lang.Object > AckRequestData

Static Methods

newBuilder(String ackId)

public static AckRequestData.Builder newBuilder(String ackId)
Parameter
Name Description
ackId String
Returns
Type Description
AckRequestData.Builder

Constructors

AckRequestData(AckRequestData.Builder builder)

protected AckRequestData(AckRequestData.Builder builder)
Parameter
Name Description
builder AckRequestData.Builder

Methods

getAckId()

public String getAckId()
Returns
Type Description
String

getMessageFutureIfExists()

public SettableApiFuture<AckResponse> getMessageFutureIfExists()
Returns
Type Description
SettableApiFuture<AckResponse>

getMessageWrapper()

public PubsubMessageWrapper getMessageWrapper()

Returns an empty PubsubMessageWrapper with OpenTelemetry tracing disabled. This allows methods that use this method to be unit tested.

Returns
Type Description
PubsubMessageWrapper

hasMessageFuture()

public boolean hasMessageFuture()
Returns
Type Description
boolean

setResponse(AckResponse ackResponse, boolean setResponseOnSuccess)

public AckRequestData setResponse(AckResponse ackResponse, boolean setResponseOnSuccess)
Parameters
Name Description
ackResponse AckResponse
setResponseOnSuccess boolean
Returns
Type Description
AckRequestData