public class GetRecordsResult
extends java.lang.Object
implements java.io.Serializable
Represents the output for GetRecords.
Constructor and Description |
---|
GetRecordsResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getMillisBehindLatest()
The number of milliseconds the GetRecords response is from the tip
of the stream, indicating how far behind current time the consumer is.
|
java.lang.String |
getNextShardIterator()
The next position in the shard from which to start sequentially reading
data records.
|
java.util.List<Record> |
getRecords()
The data records retrieved from the shard.
|
int |
hashCode() |
void |
setMillisBehindLatest(java.lang.Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip
of the stream, indicating how far behind current time the consumer is.
|
void |
setNextShardIterator(java.lang.String nextShardIterator)
The next position in the shard from which to start sequentially reading
data records.
|
void |
setRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetRecordsResult |
withMillisBehindLatest(java.lang.Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip
of the stream, indicating how far behind current time the consumer is.
|
GetRecordsResult |
withNextShardIterator(java.lang.String nextShardIterator)
The next position in the shard from which to start sequentially reading
data records.
|
GetRecordsResult |
withRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
|
GetRecordsResult |
withRecords(Record... records)
The data records retrieved from the shard.
|
public java.util.List<Record> getRecords()
The data records retrieved from the shard.
The data records retrieved from the shard.
public void setRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
records
- The data records retrieved from the shard.
public GetRecordsResult withRecords(Record... records)
The data records retrieved from the shard.
Returns a reference to this object so that method calls can be chained together.
records
- The data records retrieved from the shard.
public GetRecordsResult withRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
Returns a reference to this object so that method calls can be chained together.
records
- The data records retrieved from the shard.
public java.lang.String getNextShardIterator()
The next position in the shard from which to start sequentially reading
data records. If set to null
, the shard has been closed and
the requested iterator does not return any more data.
Constraints:
Length: 1 - 512
The next position in the shard from which to start sequentially
reading data records. If set to null
, the shard has
been closed and the requested iterator does not return any more
data.
public void setNextShardIterator(java.lang.String nextShardIterator)
The next position in the shard from which to start sequentially reading
data records. If set to null
, the shard has been closed and
the requested iterator does not return any more data.
Constraints:
Length: 1 - 512
nextShardIterator
-
The next position in the shard from which to start
sequentially reading data records. If set to null
, the shard has been closed and the requested iterator does
not return any more data.
public GetRecordsResult withNextShardIterator(java.lang.String nextShardIterator)
The next position in the shard from which to start sequentially reading
data records. If set to null
, the shard has been closed and
the requested iterator does not return any more data.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
nextShardIterator
-
The next position in the shard from which to start
sequentially reading data records. If set to null
, the shard has been closed and the requested iterator does
not return any more data.
public java.lang.Long getMillisBehindLatest()
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
Constraints:
Range: 0 -
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
public void setMillisBehindLatest(java.lang.Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
Constraints:
Range: 0 -
millisBehindLatest
- The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
public GetRecordsResult withMillisBehindLatest(java.lang.Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
millisBehindLatest
- The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.