public class AwsIotWebsocketConnection extends AwsIotMqttConnection
AwsIotMqttConnection
that provides a
WebSocket based communication channel to the MQTT implementation.client, connectionStatus
Constructor and Description |
---|
AwsIotWebsocketConnection(AbstractAwsIotClient client,
String awsAccessKeyId,
String awsSecretAccessKey) |
AwsIotWebsocketConnection(AbstractAwsIotClient client,
String awsAccessKeyId,
String awsSecretAccessKey,
String sessionToken) |
AwsIotWebsocketConnection(AbstractAwsIotClient client,
String awsAccessKeyId,
String awsSecretAccessKey,
String sessionToken,
String region) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getServerUris() |
void |
updateCredentials(String awsAccessKeyId,
String awsSecretAccessKey,
String sessionToken)
Updates credentials for the connection, which will be used for new
connections.
|
closeConnection, getClientListener, getMessageListener, getMqttClient, getSocketFactory, openConnection, publishMessage, setClientListener, setMessageListener, setMqttClient, subscribeTopic, unsubscribeTopic
connect, disconnect, getClient, getConnectCallback, getConnectionStatus, getPublishQueue, getRetryTask, getRetryTimes, getSubscribeQueue, getUnsubscribeQueue, isUserDisconnect, onConnectionClosed, onConnectionFailure, onConnectionSuccess, publish, setConnectionStatus, subscribe, unsubscribe
public AwsIotWebsocketConnection(AbstractAwsIotClient client, String awsAccessKeyId, String awsSecretAccessKey) throws AWSIotException
AWSIotException
public AwsIotWebsocketConnection(AbstractAwsIotClient client, String awsAccessKeyId, String awsSecretAccessKey, String sessionToken, String region) throws AWSIotException
AWSIotException
public AwsIotWebsocketConnection(AbstractAwsIotClient client, String awsAccessKeyId, String awsSecretAccessKey, String sessionToken) throws AWSIotException
AWSIotException
public void updateCredentials(String awsAccessKeyId, String awsSecretAccessKey, String sessionToken)
AwsIotConnection
updateCredentials
in class AwsIotConnection
awsAccessKeyId
- the AWS access key idawsSecretAccessKey
- the AWS secret access keysessionToken
- Session token received along with the temporary credentials
from services like STS server, AssumeRole, or Amazon Cognito.public Set<String> getServerUris()
getServerUris
in class AwsIotMqttConnection
Copyright © 2020. All rights reserved.