blob: 5d5d2a1ea5ae7bc3502a0c5b981fc35f11d47028 [file] [log] [blame]
package brooklyn.entity.messaging
import brooklyn.event.basic.BasicAttributeSensor
import brooklyn.event.basic.BasicAttributeSensorAndConfigKey
/**
* An interface that describes a messaging topic.
*/
public interface Topic {
BasicAttributeSensorAndConfigKey<String> TOPIC_NAME = [ String, "topic.name", "Topic name" ]
/**
* Create the topic.
*
* TODO make this an effector
*/
public abstract void create();
/**
* Delete the topic.
*
* TODO make this an effector
*/
public abstract void delete();
String getTopicName();
}