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, unsubscribeTopicconnect, disconnect, getClient, getConnectCallback, getConnectionStatus, getPublishQueue, getRetryTask, getRetryTimes, getSubscribeQueue, getUnsubscribeQueue, isUserDisconnect, onConnectionClosed, onConnectionFailure, onConnectionSuccess, publish, setConnectionStatus, subscribe, unsubscribepublic AwsIotWebsocketConnection(AbstractAwsIotClient client, String awsAccessKeyId, String awsSecretAccessKey) throws AWSIotException
AWSIotExceptionpublic AwsIotWebsocketConnection(AbstractAwsIotClient client, String awsAccessKeyId, String awsSecretAccessKey, String sessionToken, String region) throws AWSIotException
AWSIotExceptionpublic AwsIotWebsocketConnection(AbstractAwsIotClient client, String awsAccessKeyId, String awsSecretAccessKey, String sessionToken) throws AWSIotException
AWSIotExceptionpublic void updateCredentials(String awsAccessKeyId, String awsSecretAccessKey, String sessionToken)
AwsIotConnectionupdateCredentials in class AwsIotConnectionawsAccessKeyId - 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 AwsIotMqttConnectionCopyright © 2020. All rights reserved.