Class CamelServerItem
- java.lang.Object
-
- org.apache.camel.component.milo.server.internal.CamelServerItem
-
public class CamelServerItem extends Object
-
-
Constructor Summary
Constructors Constructor Description CamelServerItem(String itemId, org.eclipse.milo.opcua.sdk.server.nodes.UaNodeContext nodeContext, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort namespaceIndex, org.eclipse.milo.opcua.sdk.server.nodes.UaObjectNode baseNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWriteListener(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> consumer)
void
dispose()
protected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue
getDataValue()
void
removeWriteListener(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> consumer)
protected <T> void
runThrough(Collection<Consumer<T>> list, Consumer<Consumer<T>> consumer)
Run through a list, aggregating errorsprotected void
setDataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
String
toString()
void
update(Object value)
-
-
-
Constructor Detail
-
CamelServerItem
public CamelServerItem(String itemId, org.eclipse.milo.opcua.sdk.server.nodes.UaNodeContext nodeContext, org.eclipse.milo.opcua.stack.core.types.builtin.unsigned.UShort namespaceIndex, org.eclipse.milo.opcua.sdk.server.nodes.UaObjectNode baseNode)
-
-
Method Detail
-
dispose
public void dispose()
-
addWriteListener
public void addWriteListener(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> consumer)
-
removeWriteListener
public void removeWriteListener(Consumer<org.eclipse.milo.opcua.stack.core.types.builtin.DataValue> consumer)
-
setDataValue
protected void setDataValue(org.eclipse.milo.opcua.stack.core.types.builtin.DataValue value)
-
runThrough
protected <T> void runThrough(Collection<Consumer<T>> list, Consumer<Consumer<T>> consumer)
Run through a list, aggregating errorsThe consumer is called for each list item, regardless if the consumer did through an exception. All exceptions are caught and thrown in one RuntimeException. The first exception being wrapped directly while the latter ones, if any, are added as suppressed exceptions.
- Parameters:
list
- the list to run throughconsumer
- the consumer processing list elements
-
getDataValue
protected org.eclipse.milo.opcua.stack.core.types.builtin.DataValue getDataValue()
-
update
public void update(Object value)
-
-