com.netflix.astyanax.recipes.storage
Class ObjectReader

java.lang.Object
  extended by com.netflix.astyanax.recipes.storage.ObjectReader
All Implemented Interfaces:
Callable<ObjectMetadata>

public class ObjectReader
extends Object
implements Callable<ObjectMetadata>


Constructor Summary
ObjectReader(ChunkedStorageProvider provider, String objectName, OutputStream os)
           
 
Method Summary
 ObjectMetadata call()
           
 ObjectReader withBatchSize(int size)
           
 ObjectReader withCallback(ObjectReadCallback callback)
           
 ObjectReader withConcurrencyLevel(int level)
           
 ObjectReader withMaxWaitTime(int maxWaitTimeInSeconds)
           
 ObjectReader withRetryPolicy(RetryPolicy retryPolicy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectReader

public ObjectReader(ChunkedStorageProvider provider,
                    String objectName,
                    OutputStream os)
Method Detail

withBatchSize

public ObjectReader withBatchSize(int size)

withConcurrencyLevel

public ObjectReader withConcurrencyLevel(int level)

withRetryPolicy

public ObjectReader withRetryPolicy(RetryPolicy retryPolicy)

withMaxWaitTime

public ObjectReader withMaxWaitTime(int maxWaitTimeInSeconds)

withCallback

public ObjectReader withCallback(ObjectReadCallback callback)

call

public ObjectMetadata call()
                    throws Exception
Specified by:
call in interface Callable<ObjectMetadata>
Throws:
Exception


Copyright © 2012. All Rights Reserved.