com.netflix.astyanax.recipes.storage
Class ObjectWriter
java.lang.Object
com.netflix.astyanax.recipes.storage.ObjectWriter
- All Implemented Interfaces:
- Callable<ObjectMetadata>
public class ObjectWriter
- extends Object
- implements Callable<ObjectMetadata>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectWriter
public ObjectWriter(ChunkedStorageProvider provider,
String objectName,
InputStream is)
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.