public final class ClientConfiguration
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientConfiguration.AuthType |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_AMQP_OPEN_AUTHENTICATION_SESSION_TIMEOUT_IN_SECONDS |
static int |
DEFAULT_AMQP_OPEN_DEVICE_SESSIONS_TIMEOUT_IN_SECONDS |
static int |
DEFAULT_KEEP_ALIVE_INTERVAL_IN_SECONDS |
static int |
DEFAULT_SEND_INTERVAL_IN_MILLISECONDS |
static int |
DEFAULT_SEND_INTERVAL_IN_SECONDS |
| Modifier | Constructor and Description |
|---|---|
protected |
ClientConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
IotHubAuthenticationProvider |
getAuthenticationProvider() |
ClientConfiguration.AuthType |
getAuthenticationType()
Getter for AuthenticationType
|
java.lang.String |
getDeviceClientUniqueIdentifier() |
java.lang.String |
getDeviceId()
Getter for the device ID.
|
MessageCallback |
getDeviceTelemetryMessageCallback(java.lang.String inputName)
Getter for the message callback.
|
java.lang.Object |
getDeviceTelemetryMessageContext(java.lang.String inputName)
Getter for the context to be passed in to the message callback.
|
MessageCallback |
getDeviceTwinMessageCallback()
Getter for the device twin message callback.
|
java.lang.Object |
getDeviceTwinMessageContext()
Getter for the context to be passed in to the device twin message callback.
|
MessageCallback |
getDirectMethodsMessageCallback()
Getter for the device twin message callback.
|
java.lang.Object |
getDirectMethodsMessageContext()
Getter for the context to be passed in to the device twin message callback.
|
java.lang.String |
getGatewayHostname()
Getter for the Gateway host name.
|
java.lang.String |
getIotHubHostname()
Getter for the IoT Hub hostname.
|
java.lang.String |
getIotHubName()
Getter for the IoT Hub name.
|
int |
getMessageLockTimeoutSecs()
Getter for the timeout, in seconds, for the lock that the client has on a
received message.
|
java.lang.String |
getModuleId() |
IotHubSasTokenAuthenticationProvider |
getSasTokenAuthentication()
Getter for SasTokenAuthentication
|
boolean |
isUsingIdentifiableThreadNames() |
boolean |
isUsingWebsocket()
Getter for Websocket
|
void |
setDeviceTwinMessageCallback(MessageCallback callback,
java.lang.Object context)
Setter for the device twin message callback.
|
void |
setDirectMethodsMessageCallback(MessageCallback callback,
java.lang.Object context)
Setter for the device method message callback.
|
public static final int DEFAULT_KEEP_ALIVE_INTERVAL_IN_SECONDS
public static final int DEFAULT_SEND_INTERVAL_IN_SECONDS
public static final int DEFAULT_AMQP_OPEN_AUTHENTICATION_SESSION_TIMEOUT_IN_SECONDS
public static final int DEFAULT_AMQP_OPEN_DEVICE_SESSIONS_TIMEOUT_IN_SECONDS
public static final int DEFAULT_SEND_INTERVAL_IN_MILLISECONDS
public IotHubSasTokenAuthenticationProvider getSasTokenAuthentication()
public IotHubAuthenticationProvider getAuthenticationProvider()
public boolean isUsingWebsocket()
public java.lang.String getIotHubHostname()
public java.lang.String getIotHubName()
public java.lang.String getGatewayHostname()
public java.lang.String getDeviceId()
public java.lang.String getModuleId()
public java.lang.String getDeviceClientUniqueIdentifier()
public MessageCallback getDeviceTelemetryMessageCallback(java.lang.String inputName)
inputName - the inputName that the desired callback is tied to, or null for the default callbackpublic java.lang.Object getDeviceTelemetryMessageContext(java.lang.String inputName)
inputName - the inputName that the desired callback context is tied to, or null for the default callback contextpublic void setDirectMethodsMessageCallback(MessageCallback callback, java.lang.Object context)
callback - Callback for device method messages.context - is the context for the callback.public MessageCallback getDirectMethodsMessageCallback()
public java.lang.Object getDirectMethodsMessageContext()
public void setDeviceTwinMessageCallback(MessageCallback callback, java.lang.Object context)
callback - callback to be invoked for device twin messages.context - is the context for the callback.public MessageCallback getDeviceTwinMessageCallback()
public java.lang.Object getDeviceTwinMessageContext()
public int getMessageLockTimeoutSecs()
public ClientConfiguration.AuthType getAuthenticationType()
public boolean isUsingIdentifiableThreadNames()
Copyright © 2023. All rights reserved.