public class StreamServiceImpl extends java.lang.Object implements StreamService
StreamService implementation.| Constructor and Description |
|---|
StreamServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected TransportFacade<?,?,?,?> |
borrowClient(org.eclipse.kapua.message.device.data.KapuaDataMessage kapuaDataMessage)
Picks a
TransportFacade to send the KuraResponseMessage. |
protected <F extends org.eclipse.kapua.message.Message<?,?>,T extends org.eclipse.kapua.message.Message<?,?>> |
getTranslator(java.lang.Class<F> from,
java.lang.Class<T> to)
Gets the translator for the given
Message types. |
org.eclipse.kapua.service.device.management.message.response.KapuaResponseMessage<?,?> |
publish(org.eclipse.kapua.message.device.data.KapuaDataMessage kapuaDataMessage,
java.lang.Long timeout) |
public org.eclipse.kapua.service.device.management.message.response.KapuaResponseMessage<?,?> publish(org.eclipse.kapua.message.device.data.KapuaDataMessage kapuaDataMessage,
java.lang.Long timeout)
throws org.eclipse.kapua.KapuaException
publish in interface StreamServiceorg.eclipse.kapua.KapuaExceptionprotected TransportFacade<?,?,?,?> borrowClient(org.eclipse.kapua.message.device.data.KapuaDataMessage kapuaDataMessage) throws KuraDeviceCallException
TransportFacade to send the KuraResponseMessage.kapuaDataMessage - The KTransportFacade to use to send the KuraDataMessage.KuraDeviceCallException - If getting the TransportFacade causes any Exception.protected <F extends org.eclipse.kapua.message.Message<?,?>,T extends org.eclipse.kapua.message.Message<?,?>> Translator<F,T> getTranslator(java.lang.Class<F> from, java.lang.Class<T> to) throws KuraDeviceCallException
Message types.F - The Message classfrom which to translate.T - The Message class to which to translate.from - The Message type from which to translate.to - The Message type to which to translate.Translator found.KuraDeviceCallException - If error occurs while loojing for the Translator.Copyright © 2020 Eclipse.org. All rights reserved.