org.granite.client.tide.data
Class DataObserver
java.lang.Object
org.granite.client.tide.data.DataObserver
- All Implemented Interfaces:
- ContextAware, NameAware
public class DataObserver
- extends Object
- implements ContextAware, NameAware
- Author:
- William DRAI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DATA_OBSERVER_TOPIC_NAME
public static final String DATA_OBSERVER_TOPIC_NAME
- See Also:
- Constant Field Values
DataObserver
protected DataObserver()
DataObserver
public DataObserver(ServerSession serverSession,
EntityManager entityManager)
DataObserver
public DataObserver(String destination,
ServerSession serverSession,
EntityManager entityManager)
setContext
public void setContext(Context context)
- Specified by:
setContext in interface ContextAware
setName
public void setName(String name)
- Specified by:
setName in interface NameAware
start
@PostConstruct
public void start()
stop
@PreDestroy
public void stop()
subscribe
public void subscribe()
- Subscribe the data topic
unsubscribe
public void unsubscribe()