public interface Listener<T extends Model>
| Modifier and Type | Method and Description |
|---|---|
void |
connected(T model)
Invoked when the model receives a connected message.
|
void |
created(T model)
Invoked when the model receives a created message.
|
void |
deleted(T model)
Invoked when the model receives a deleted message.
|
void |
error(String error)
Invoked when the model receives a error message.
|
void |
routeSubscribed(T model)
Invoked when the model receives a route subscribed message.
|
void |
routeUnsubscribed(T model)
Invoked when the model receives a route unsubscribed message.
|
void |
subscribed(T model)
Invoked when the model receives a subscribed message.
|
void |
unsubscribed(T model)
Invoked when the model receives an unsubscribed message.
|
void |
updated(T model)
Invoked when the model receives an updated message.
|
void connected(T model)
model - connected to, with updated fields.void created(T model)
model - created, with updated fields.void deleted(T model)
model - deleted to, with updated fields.void error(String error)
error - message as a String.void updated(T model)
model - updated, with updated fields.void routeSubscribed(T model)
model - route subscribed.void routeUnsubscribed(T model)
model - route unsubscribed.void subscribed(T model)
model - subscribed to.void unsubscribed(T model)
model - unsubscribed from.