brooklyn.entity.messaging.Queue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-software-messaging Show documentation
Show all versions of brooklyn-software-messaging Show documentation
Brooklyn entities for messaging software processes
package brooklyn.entity.messaging;
import brooklyn.event.AttributeSensor;
import brooklyn.event.basic.BasicAttributeSensorAndConfigKey;
import brooklyn.event.basic.Sensors;
/**
* An interface that describes a messaging queue.
*/
public interface Queue {
BasicAttributeSensorAndConfigKey QUEUE_NAME = new BasicAttributeSensorAndConfigKey(String.class, "queue.name", "Queue name");
AttributeSensor QUEUE_DEPTH_BYTES = Sensors.newIntegerSensor("queue.depth.bytes", "Queue depth in bytes");
AttributeSensor QUEUE_DEPTH_MESSAGES = Sensors.newIntegerSensor("queue.depth.messages", "Queue depth in messages");
/**
* Create the queue.
*
* TODO make this an effector
*/
abstract void create();
/**
* Delete the queue.
*
* TODO make this an effector
*/
abstract void delete();
String getQueueName();
}