org.fusesource.mqtt.client
Class MQTT
java.lang.Object
org.fusesource.mqtt.client.MQTT
public class MQTT
- extends java.lang.Object
- Author:
- Hiram Chirino
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MQTT
public MQTT()
MQTT
public MQTT(MQTT other)
getBlockingThreadPool
public static java.util.concurrent.ThreadPoolExecutor getBlockingThreadPool()
setBlockingThreadPool
public static void setBlockingThreadPool(java.util.concurrent.ThreadPoolExecutor pool)
callbackConnection
public CallbackConnection callbackConnection()
futureConnection
public FutureConnection futureConnection()
blockingConnection
public BlockingConnection blockingConnection()
getClientId
public org.fusesource.hawtbuf.UTF8Buffer getClientId()
getKeepAlive
public short getKeepAlive()
getPassword
public org.fusesource.hawtbuf.UTF8Buffer getPassword()
getType
public byte getType()
getUserName
public org.fusesource.hawtbuf.UTF8Buffer getUserName()
getWillMessage
public org.fusesource.hawtbuf.UTF8Buffer getWillMessage()
getWillQos
public QoS getWillQos()
getWillTopic
public org.fusesource.hawtbuf.UTF8Buffer getWillTopic()
isCleanSession
public boolean isCleanSession()
isWillRetain
public boolean isWillRetain()
setCleanSession
public void setCleanSession(boolean cleanSession)
setClientId
public void setClientId(java.lang.String clientId)
setClientId
public void setClientId(org.fusesource.hawtbuf.UTF8Buffer clientId)
setKeepAlive
public void setKeepAlive(short keepAlive)
setPassword
public void setPassword(java.lang.String password)
setPassword
public void setPassword(org.fusesource.hawtbuf.UTF8Buffer password)
setUserName
public void setUserName(java.lang.String password)
setUserName
public void setUserName(org.fusesource.hawtbuf.UTF8Buffer userName)
setWillMessage
public void setWillMessage(java.lang.String willMessage)
setWillMessage
public void setWillMessage(org.fusesource.hawtbuf.UTF8Buffer willMessage)
setWillQos
public void setWillQos(QoS willQos)
setWillRetain
public void setWillRetain(boolean willRetain)
setWillTopic
public void setWillTopic(java.lang.String password)
setWillTopic
public void setWillTopic(org.fusesource.hawtbuf.UTF8Buffer willTopic)
getBlockingExecutor
public java.util.concurrent.Executor getBlockingExecutor()
setBlockingExecutor
public void setBlockingExecutor(java.util.concurrent.Executor blockingExecutor)
getDispatchQueue
public org.fusesource.hawtdispatch.DispatchQueue getDispatchQueue()
setDispatchQueue
public void setDispatchQueue(org.fusesource.hawtdispatch.DispatchQueue dispatchQueue)
getLocalAddress
public java.net.URI getLocalAddress()
setLocalAddress
public void setLocalAddress(java.lang.String localAddress)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
setLocalAddress
public void setLocalAddress(java.net.URI localAddress)
getMaxReadRate
public int getMaxReadRate()
setMaxReadRate
public void setMaxReadRate(int maxReadRate)
getMaxWriteRate
public int getMaxWriteRate()
setMaxWriteRate
public void setMaxWriteRate(int maxWriteRate)
getReceiveBufferSize
public int getReceiveBufferSize()
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize)
getHost
public java.net.URI getHost()
setHost
public void setHost(java.lang.String host,
int port)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
setHost
public void setHost(java.lang.String host)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
setHost
public void setHost(java.net.URI host)
getSendBufferSize
public int getSendBufferSize()
setSendBufferSize
public void setSendBufferSize(int sendBufferSize)
getSslContext
public javax.net.ssl.SSLContext getSslContext()
setSslContext
public void setSslContext(javax.net.ssl.SSLContext sslContext)
getTrafficClass
public int getTrafficClass()
setTrafficClass
public void setTrafficClass(int trafficClass)
isUseLocalHost
public boolean isUseLocalHost()
setUseLocalHost
public void setUseLocalHost(boolean useLocalHost)
getConnectAttemptsMax
public long getConnectAttemptsMax()
setConnectAttemptsMax
public void setConnectAttemptsMax(long connectAttemptsMax)
getReconnectAttemptsMax
public long getReconnectAttemptsMax()
setReconnectAttemptsMax
public void setReconnectAttemptsMax(long reconnectAttemptsMax)
getReconnectBackOffMultiplier
public double getReconnectBackOffMultiplier()
setReconnectBackOffMultiplier
public void setReconnectBackOffMultiplier(double reconnectBackOffMultiplier)
getReconnectDelay
public long getReconnectDelay()
setReconnectDelay
public void setReconnectDelay(long reconnectDelay)
getReconnectDelayMax
public long getReconnectDelayMax()
setReconnectDelayMax
public void setReconnectDelayMax(long reconnectDelayMax)
Copyright © 2010-2012 FuseSource, Corp.. All Rights Reserved.