Constructor and Description |
---|
AbstractData(AbstractApplication application,
Topic topic) |
Modifier and Type | Method and Description |
---|---|
void |
send(Payload payload) |
void |
subscribe(MessageHandler handler,
ErrorHandler<? extends Throwable> errorHandler)
Receive messages and handle reception errors on this data topic
|
public AbstractData(AbstractApplication application, Topic topic)
public void subscribe(MessageHandler handler, ErrorHandler<? extends Throwable> errorHandler) throws Exception
Data
Subscriptions will automatically be re-established after a connection loss.
subscribe
in interface Data
handler
- the handler which should process received messageserrorHandler
- the handler which should process received messages which got received
but could not be properly parsedException
- if anything goes wrong on the subscription processCopyright © 2017. All rights reserved.