RowKeyType - the row key type - String, Integer etc.public class HystrixCassandraGetRow<RowKeyType> extends AbstractCassandraHystrixCommand<com.netflix.astyanax.model.ColumnList<java.lang.String>>
| Constructor and Description |
|---|
HystrixCassandraGetRow(com.netflix.astyanax.Keyspace keyspace,
com.netflix.astyanax.model.ColumnFamily<RowKeyType,java.lang.String> columnFamily,
RowKeyType rowKey) |
HystrixCassandraGetRow(com.netflix.astyanax.Keyspace keyspace,
java.lang.String columnFamilyName,
RowKeyType rowKey) |
| Modifier and Type | Method and Description |
|---|---|
protected com.netflix.astyanax.model.ColumnList<java.lang.String> |
run() |
HystrixCassandraGetRow<RowKeyType> |
withColumns(java.lang.String... columns)
Restrict the response to only these columns.
|
getColumnFamilyViaColumnName, getColumnFamilyViaColumnNamedecomposeException, execute, getCacheKey, getCommandGroup, getCommandKey, getExecutionEvents, getExecutionTimeInMilliseconds, getFailedExecutionException, getFallback, getMetrics, getProperties, getThreadPoolKey, isCircuitBreakerOpen, isExecutedInThread, isExecutionComplete, isFailedExecution, isResponseFromCache, isResponseFromFallback, isResponseRejected, isResponseShortCircuited, isResponseTimedOut, isSuccessfulExecution, observe, queue, toObservable, toObservablepublic HystrixCassandraGetRow(com.netflix.astyanax.Keyspace keyspace,
com.netflix.astyanax.model.ColumnFamily<RowKeyType,java.lang.String> columnFamily,
RowKeyType rowKey)
public HystrixCassandraGetRow(com.netflix.astyanax.Keyspace keyspace,
java.lang.String columnFamilyName,
RowKeyType rowKey)
public HystrixCassandraGetRow<RowKeyType> withColumns(java.lang.String... columns)
columns - the list of column names.protected com.netflix.astyanax.model.ColumnList<java.lang.String> run()
throws java.lang.Exception
run in class com.netflix.hystrix.HystrixCommand<com.netflix.astyanax.model.ColumnList<java.lang.String>>java.lang.Exception