public class ProxyValueHolder extends ProxyItemSupport
Modifier and Type | Field and Description |
---|---|
protected ItemUpdateListener |
listener |
protected Map<ProxySubConnectionId,DataItemValue.Builder> |
values |
currentConnection, prefix, proxyItemId, separator
Constructor and Description |
---|
ProxyValueHolder(String separator,
ProxyPrefixName prefix,
ProxySubConnectionId currentConnection,
String itemId) |
Modifier and Type | Method and Description |
---|---|
Map<String,Variant> |
getAttributes() |
DataItemValue |
getCurrentValue() |
protected DataItemValue.Builder |
getItemValue(ProxySubConnectionId id)
must be called synchronized
|
Variant |
getValue() |
void |
setListener(ItemUpdateListener listener) |
void |
switchTo(ProxySubConnectionId newConnection)
Switch between connections
|
void |
updateData(ProxySubConnectionId connection,
Variant value,
Map<String,Variant> attributes,
AttributeMode mode) |
void |
updateSubscriptionState(ProxySubConnectionId connection,
SubscriptionState subscriptionState,
Throwable subscriptionError) |
getItemId
protected final Map<ProxySubConnectionId,DataItemValue.Builder> values
protected ItemUpdateListener listener
public ProxyValueHolder(String separator, ProxyPrefixName prefix, ProxySubConnectionId currentConnection, String itemId)
currentConnection
- public void switchTo(ProxySubConnectionId newConnection)
ProxyItemSupport
switchTo
in class ProxyItemSupport
public void updateData(ProxySubConnectionId connection, Variant value, Map<String,Variant> attributes, AttributeMode mode)
connection
- value
- attributes
- mode
- protected DataItemValue.Builder getItemValue(ProxySubConnectionId id)
id
- if the connectionpublic Variant getValue()
public void setListener(ItemUpdateListener listener)
listener
- public void updateSubscriptionState(ProxySubConnectionId connection, SubscriptionState subscriptionState, Throwable subscriptionError)
connection
- subscriptionState
- subscriptionError
- public DataItemValue getCurrentValue()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.