com.netflix.astyanax.recipes.storage
Class ObjectWriter

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

public class ObjectWriter
extends Object
implements Callable<ObjectMetadata>


Constructor Summary
ObjectWriter(ChunkedStorageProvider provider, String objectName, InputStream is)
           
 
Method Summary
 ObjectMetadata call()
           
 ObjectWriter withCallback(ObjectWriteCallback callback)
           
 ObjectWriter withChunkSize(int size)
           
 ObjectWriter withConcurrencyLevel(int level)
           
 ObjectWriter withMaxWaitTime(int maxWaitTimeInSeconds)
           
 ObjectWriter withTtl(Integer ttl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectWriter

public ObjectWriter(ChunkedStorageProvider provider,
                    String objectName,
                    InputStream is)
Method Detail

withChunkSize

public ObjectWriter withChunkSize(int size)

withTtl

public ObjectWriter withTtl(Integer ttl)

withConcurrencyLevel

public ObjectWriter withConcurrencyLevel(int level)

withMaxWaitTime

public ObjectWriter withMaxWaitTime(int maxWaitTimeInSeconds)

withCallback

public ObjectWriter withCallback(ObjectWriteCallback callback)

call

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


Copyright © 2012. All Rights Reserved.