protected class CassandraServiceImpl.WriterImpl<T> extends java.lang.Object implements CassandraService.Writer<T>
Constructor and Description |
---|
WriterImpl(CassandraIO.Write<T> spec) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(T entity)
Write the entity to the Cassandra instance, using
Mapper obtained with the
MappingManager . |
public WriterImpl(CassandraIO.Write<T> spec)
public void write(T entity)
Mapper
obtained with the
MappingManager
. This method use Mapper.save(Object)
method, which is
synchronous. It means the entity is guaranteed to be reliably committed to Cassandra.write
in interface CassandraService.Writer<T>
public void close()
close
in interface java.lang.AutoCloseable