public abstract class AbstractKaaTransport extends Object implements KaaTransport
Modifier and Type | Field and Description |
---|---|
protected KaaChannelManager |
channelManager |
protected KaaClientState |
clientState |
Constructor and Description |
---|
AbstractKaaTransport() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.kaaproject.kaa.common.TransportType |
getTransportType() |
void |
setChannelManager(KaaChannelManager channelManager)
Sets the specific
KaaChannelManager for the current transport. |
void |
setClientState(KaaClientState state)
Sets the client's state object.
|
void |
sync()
Sends the update request to the server.
|
protected void |
syncAck() |
protected void |
syncAck(org.kaaproject.kaa.common.endpoint.gen.SyncResponseStatus status) |
protected void |
syncAckByType(org.kaaproject.kaa.common.TransportType type) |
protected void |
syncAll(org.kaaproject.kaa.common.TransportType type) |
protected void |
syncByType(org.kaaproject.kaa.common.TransportType type) |
protected void |
syncByType(org.kaaproject.kaa.common.TransportType type,
boolean ack) |
protected KaaChannelManager channelManager
protected KaaClientState clientState
public void setChannelManager(KaaChannelManager channelManager)
KaaTransport
KaaChannelManager
for the current transport.setChannelManager
in interface KaaTransport
channelManager
- manager to be set.public void setClientState(KaaClientState state)
KaaTransport
setClientState
in interface KaaTransport
state
- state object to be set.protected void syncByType(org.kaaproject.kaa.common.TransportType type)
protected void syncAckByType(org.kaaproject.kaa.common.TransportType type)
protected void syncByType(org.kaaproject.kaa.common.TransportType type, boolean ack)
protected void syncAll(org.kaaproject.kaa.common.TransportType type)
public void sync()
KaaTransport
sync
in interface KaaTransport
protected void syncAck()
protected void syncAck(org.kaaproject.kaa.common.endpoint.gen.SyncResponseStatus status)
protected abstract org.kaaproject.kaa.common.TransportType getTransportType()
Copyright © 2015. All rights reserved.