CheckpointCloseableIterableImpl.Builder

public static class CheckpointCloseableIterableImpl.Builder extends Object

Builder object for CheckpointCloseableIterableImpl

Public Constructor Summary

CheckpointCloseableIterableImpl.Builder(CheckpointCloseableIterable<T> delegate)
Constructs a builder that clones the given CheckpointCloseableIterable.
CheckpointCloseableIterableImpl.Builder(Collection<T> operations)

Public Method Summary

CheckpointCloseableIterableImpl<T>
build()
Builder<T>
setCheckpoint(byte[] checkpoint)
Builder<T>
setCheckpoint(Supplier<byte[]> checkpoint)
Builder<T>
setHasMore(Supplier<Boolean> hasMore)
Builder<T>
setHasMore(boolean hasMore)

Inherited Method Summary

Public Constructors

public CheckpointCloseableIterableImpl.Builder (CheckpointCloseableIterable<T> delegate)

Constructs a builder that clones the given CheckpointCloseableIterable. This constructor should rarely be needed, but exists to avoid hard-to-debug errors if the CloseableIterable overload were used instead, since that would ignore the checkpoint and more items flag.

Changes to delegate are reflected in the constructed CheckpointCloseableIterable by default, unless the setCheckpoint(byte[]) or setHasMore(boolean) methods are called on this builder.

Parameters
delegate

public CheckpointCloseableIterableImpl.Builder (CloseableIterable<T> delegate)

Parameters
delegate

public CheckpointCloseableIterableImpl.Builder (Iterator<T> delegate)

Parameters
delegate

public CheckpointCloseableIterableImpl.Builder (Collection<T> operations)

Parameters
operations

Public Methods

public CheckpointCloseableIterableImpl<T> build ()

public Builder<T> setCheckpoint (byte[] checkpoint)

Parameters
checkpoint

public Builder<T> setCheckpoint (Supplier<byte[]> checkpoint)

Parameters
checkpoint

public Builder<T> setHasMore (Supplier<Boolean> hasMore)

Parameters
hasMore

public Builder<T> setHasMore (boolean hasMore)

Parameters
hasMore

Send feedback about...

Cloud Search
Cloud Search