RetrieveBytesRequest.Builder

public static final classRetrieveBytesRequest.BuilderextendsObject

A builder forRetrieveBytesRequest objects.

Public Constructor Summary

Builder()
Constructor for the RetrieveBytesRequest.Builderclass.

Public Method Summary

RetrieveBytesRequest
build()
Builds and returns the RetrieveBytesRequestobject.
RetrieveBytesRequest.Builder
setKeys(List<String> keys)
Sets the list of keys whose associated data, if any, should be retrieved.
RetrieveBytesRequest.Builder
setRetrieveAll(boolean retrieveAll)
Sets whether or not all app's Block Store data should be retrieved.

Inherited Method Summary

Public Constructors

publicBuilder()

Constructor for the RetrieveBytesRequest.Builderclass.

Public Methods

publicRetrieveBytesRequest build()

Builds and returns theRetrieveBytesRequest object.

public RetrieveBytesRequest.BuildersetKeys(List<String> keys)

Sets the list of keys whose associated data, if any, should be retrieved.

The default value is an empty list, which means that no key-based filtering will be performed. In other words, no data will be returned if the key list is empty and no other criterion is provided.

Note that the app data that was stored without an explicit key can be requested with the default key BlockstoreClient.DEFAULT_BYTES_DATA_KEY.

public RetrieveBytesRequest.BuildersetRetrieveAll(boolean retrieveAll)

Sets whether or not all app's Block Store data should be retrieved.

The default isfalse.

Note that ifretrieveAllis set to true, then you should NOT set any other retrieval criterion, e.g.keysshould be empty. Otherwise, an IllegalStateException will be thrown.