public interface KaaDataChannel
Modifier and Type | Method and Description |
---|---|
String |
getId()
Retrieves the channel's id.
|
ServerType |
getServerType()
Retrieves the channel's server type (i.e.
|
Map<org.kaaproject.kaa.common.TransportType,ChannelDirection> |
getSupportedTransportTypes()
Retrieves the map of transport types and their directions supported by this channel.
|
org.kaaproject.kaa.common.bootstrap.gen.ChannelType |
getType()
Retrieves the channel's type (i.e.
|
void |
pause()
Pauses the channel's workflow.
|
void |
resume()
Resumes the channel's workflow.
|
void |
setConnectivityChecker(ConnectivityChecker checker)
Sets connectivity checker to the current channel.
|
void |
setDemultiplexer(KaaDataDemultiplexer demultiplexer)
Sets the response demultiplexer for this channel.
|
void |
setMultiplexer(KaaDataMultiplexer multiplexer)
Sets the request multiplexer for this channel.
|
void |
setServer(ServerInfo server)
Sets the server's parameters for the current channel.
|
void |
shutdown()
Shuts down the channel instance.
|
void |
sync(org.kaaproject.kaa.common.TransportType type)
Updates the channel's state of the specific service.
|
void |
syncAck(org.kaaproject.kaa.common.TransportType type)
Notifies channel about successful acknowledgment of the sync only in case of smth change.
|
void |
syncAll()
Updates the channel's state of all supported services.
|
void sync(org.kaaproject.kaa.common.TransportType type)
type
- transport type of the service.TransportType
void syncAll()
void syncAck(org.kaaproject.kaa.common.TransportType type)
type
- transport type of the service.TransportType
String getId()
org.kaaproject.kaa.common.bootstrap.gen.ChannelType getType()
ChannelType
ServerType getServerType()
ServerType
void setDemultiplexer(KaaDataDemultiplexer demultiplexer)
demultiplexer
- demultiplexer instance to be set.KaaDataDemultiplexer
void setMultiplexer(KaaDataMultiplexer multiplexer)
multiplexer
- multiplexer instance to be set.KaaDataMultiplexer
void setServer(ServerInfo server)
server
- server's parameters.ServerInfo
void setConnectivityChecker(ConnectivityChecker checker)
checker
- platform-dependent connectivity checker.ConnectivityChecker
Map<org.kaaproject.kaa.common.TransportType,ChannelDirection> getSupportedTransportTypes()
TransportType
,
ChannelDirection
void shutdown()
void pause()
void resume()
Copyright © 2014. All rights reserved.