public class WebSocketServiceListener<T> extends WebSocketDependencyListener<T>
#evaluate(Object).| Constructor and Description |
|---|
WebSocketServiceListener()
constructor
|
WebSocketServiceListener(de.tsl2.nano.bean.def.AttributeDefinition<T> attribute)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
createTimer(Long timer)
creates a timer to request the given restful service periodically.
|
protected T |
evaluate(WSEvent evt)
evaluates a new value for it's attribute through a changed depending value.
|
void |
handleEvent(WSEvent source) |
protected void |
initDeserialization() |
static void |
sendValue(String attributeID,
String propertyName,
Object value) |
public WebSocketServiceListener()
public WebSocketServiceListener(de.tsl2.nano.bean.def.AttributeDefinition<T> attribute)
attribute - public void handleEvent(WSEvent source)
handleEvent in interface de.tsl2.nano.core.messaging.IListener<WSEvent>handleEvent in class WebSocketDependencyListener<T>public void createTimer(Long timer)
timer - period in secondsprotected T evaluate(WSEvent evt)
evaluate in class WebSocketDependencyListener<T>value - source value of another attributeprotected void initDeserialization()
Copyright © 2012–2020. All rights reserved.