public interface QueueAdmin
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllForFlow(Id.Flow flowId)
Clears all queues for a flow, for example if the flow is upgraded and old.
|
void |
create(QueueName queueName)
Creates queue if doesn't exist.
|
void |
create(QueueName queueName,
Properties props)
Creates queue if doesn't exist.
|
void |
dropAllForFlow(Id.Flow flowId)
Deletes all queues for a flow, for example if the flow is deleted.
|
void |
dropAllInNamespace(Id.Namespace namespaceId)
Deletes all queues in a namespace
|
boolean |
exists(QueueName queueName) |
QueueConfigurer |
getQueueConfigurer(QueueName queueName)
Returns a
QueueConfigurer for configuring the queue. |
void |
truncate(QueueName queueName)
Wipes out queue data.
|
void |
upgrade()
Performs upgrade action for all queues.
|
void dropAllInNamespace(Id.Namespace namespaceId) throws Exception
namespaceId - the namespace to delete flows inExceptionvoid dropAllForFlow(Id.Flow flowId) throws Exception
Exceptionvoid clearAllForFlow(Id.Flow flowId) throws Exception
ExceptionQueueConfigurer getQueueConfigurer(QueueName queueName) throws Exception
QueueConfigurer for configuring the queue.Exceptionboolean exists(QueueName queueName) throws Exception
queueName - Name of the queueException - if check failsvoid create(QueueName queueName) throws Exception
queueName - Name of the queueException - if creation failsvoid create(QueueName queueName, @Nullable Properties props) throws Exception
queueName - Name of the queueprops - additional propertiesException - if creation failsCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.