public static class SendHeartbeatOptions.SendHeartbeatOptionsBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
SendHeartbeatOptions |
build() |
String |
toString() |
SendHeartbeatOptions.SendHeartbeatOptionsBuilder |
withData(ByteBuffer data) |
SendHeartbeatOptions.SendHeartbeatOptionsBuilder |
withDeleteData(Boolean deleteData) |
SendHeartbeatOptions.SendHeartbeatOptionsBuilder |
withLeaseDurationToEnsure(Long leaseDurationToEnsure) |
SendHeartbeatOptions.SendHeartbeatOptionsBuilder |
withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector) |
SendHeartbeatOptions.SendHeartbeatOptionsBuilder |
withTimeUnit(TimeUnit timeUnit) |
public SendHeartbeatOptions.SendHeartbeatOptionsBuilder withData(ByteBuffer data)
data - New data to update in the lock item. If null, will delete the data from the item.public SendHeartbeatOptions.SendHeartbeatOptionsBuilder withDeleteData(Boolean deleteData)
deleteData - True if the extra data associated with the lock should be deleted. Must be null or false if data is non-null.
Defaults to false.public SendHeartbeatOptions.SendHeartbeatOptionsBuilder withLeaseDurationToEnsure(Long leaseDurationToEnsure)
leaseDurationToEnsure - The new duration of the lease after the heartbeat is sent.public SendHeartbeatOptions.SendHeartbeatOptionsBuilder withTimeUnit(TimeUnit timeUnit)
timeUnit - The time unit for all time parameters in this beanpublic SendHeartbeatOptions.SendHeartbeatOptionsBuilder withRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
requestMetricCollector - The request level metric collector to use, takes precedence over the ones at the
http client level and AWS SDK level.public SendHeartbeatOptions build()
Copyright © 2013–2019. All rights reserved.