public final class NoopQueueConfigurer extends Object implements QueueConfigurer
QueueConfigurer that does nothing.| Constructor and Description |
|---|
NoopQueueConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
commitTx() |
void |
configureGroups(Iterable<? extends ConsumerGroupConfig> groupConfigs)
Changes the configuration of all consumer groups.
|
void |
configureInstances(long groupId,
int instances)
Changes the number of consumer instances of the given consumer group.
|
String |
getTransactionAwareName() |
Collection<byte[]> |
getTxChanges() |
void |
postTxCommit() |
boolean |
rollbackTx() |
void |
startTx(co.cask.tephra.Transaction tx) |
void |
updateTx(co.cask.tephra.Transaction tx) |
public void configureInstances(long groupId,
int instances)
throws Exception
QueueConfigurerconfigureInstances in interface QueueConfigurergroupId - groupId of the consumer groupinstances - number of instances to change toException - if failed to change number of instances.public void configureGroups(Iterable<? extends ConsumerGroupConfig> groupConfigs) throws Exception
QueueConfigurerconfigureGroups in interface QueueConfigurergroupConfigs - information for all consumer groupsException - if failed to change consumer group configurationpublic void startTx(co.cask.tephra.Transaction tx)
startTx in interface co.cask.tephra.TransactionAwarepublic void updateTx(co.cask.tephra.Transaction tx)
updateTx in interface co.cask.tephra.TransactionAwarepublic Collection<byte[]> getTxChanges()
getTxChanges in interface co.cask.tephra.TransactionAwarepublic boolean commitTx()
throws Exception
commitTx in interface co.cask.tephra.TransactionAwareExceptionpublic void postTxCommit()
postTxCommit in interface co.cask.tephra.TransactionAwarepublic boolean rollbackTx()
throws Exception
rollbackTx in interface co.cask.tephra.TransactionAwareExceptionpublic String getTransactionAwareName()
getTransactionAwareName in interface co.cask.tephra.TransactionAwarepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.