public class ConsumerConfigCache extends Object
HBaseQueueRegionObserver of the recent
queue consumer configuration.| Modifier and Type | Method and Description |
|---|---|
QueueConsumerConfig |
getConsumerConfig(byte[] queueName) |
static ConsumerConfigCache |
getInstance(org.apache.hadoop.hbase.TableName tableName,
CConfigurationReader cConfReader,
com.google.common.base.Supplier<co.cask.tephra.persist.TransactionVisibilityState> txSnapshotSupplier,
com.google.common.io.InputSupplier<org.apache.hadoop.hbase.client.HTableInterface> hTableSupplier) |
boolean |
isAlive() |
void |
updateCache()
This forces an immediate update of the config cache.
|
public boolean isAlive()
@Nullable public QueueConsumerConfig getConsumerConfig(byte[] queueName)
public void updateCache()
throws IOException
IOException - if failed to update config cachepublic static ConsumerConfigCache getInstance(org.apache.hadoop.hbase.TableName tableName, CConfigurationReader cConfReader, com.google.common.base.Supplier<co.cask.tephra.persist.TransactionVisibilityState> txSnapshotSupplier, com.google.common.io.InputSupplier<org.apache.hadoop.hbase.client.HTableInterface> hTableSupplier)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.