public class Listener<T extends Model> extends Object
| Constructor and Description |
|---|
Listener() |
| 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.
|
public void connected(T model)
model - connected to, with updated fields.public void created(T model)
model - created, with updated fields.public void deleted(T model)
model - deleted to, with updated fields.public void error(String error)
error - message as a String.public void updated(T model)
model - updated, with updated fields.public void routeSubscribed(T model)
model - route subscribed.public void routeUnsubscribed(T model)
model - route unsubscribed.public void subscribed(T model)
model - subscribed to.public void unsubscribed(T model)
model - unsubscribed from.