public class HmuxClient extends AbstractActorSender implements RemoteActorSender
Constructor and Description |
---|
HmuxClient(ClientSocketFactory pool) |
HmuxClient(java.lang.String serverId) |
HmuxClient(java.lang.String host,
int port) |
HmuxClient(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password) |
HmuxClient(java.lang.String serverId,
java.lang.String userName,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the sender.
|
boolean |
connect(java.lang.String user,
java.lang.String password) |
<T> T |
createProxy(java.lang.Class<T> api,
java.lang.String address) |
java.lang.String |
getAddress()
Returns the Actor's address used for all "from" parameters.
|
Broker |
getBroker()
The underlying broker.
|
protected Mailbox |
getClientMailbox() |
java.lang.String |
getUrl() |
void |
setTimeout(long timeout)
The default query timeout.
|
java.lang.String |
toString() |
getQueryManager, getTimeout, isClosed, message, message, nextQueryId, query, query, query, query, query, query, queryFuture
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isClosed, message, message, nextQueryId, query, query, query, query, query, query
getQueryManager
public HmuxClient(ClientSocketFactory pool)
public HmuxClient(java.lang.String serverId)
public HmuxClient(java.lang.String serverId, java.lang.String userName, java.lang.String password) throws java.io.IOException
java.io.IOException
public HmuxClient(java.lang.String host, int port)
public HmuxClient(java.lang.String host, int port, java.lang.String userName, java.lang.String password) throws java.io.IOException
java.io.IOException
public java.lang.String getAddress()
QuerySender
getAddress
in interface QuerySender
public Broker getBroker()
AbstractActorSender
getBroker
in interface ActorSender
getBroker
in interface QuerySender
getBroker
in class AbstractActorSender
public boolean connect(java.lang.String user, java.lang.String password) throws java.io.IOException
java.io.IOException
public java.lang.String getUrl()
getUrl
in interface RemoteActorSender
public void setTimeout(long timeout)
AbstractActorSender
setTimeout
in class AbstractActorSender
public <T> T createProxy(java.lang.Class<T> api, java.lang.String address)
protected Mailbox getClientMailbox()
public void close()
AbstractActorSender
close
in interface ActorSender
close
in class AbstractActorSender
public java.lang.String toString()
toString
in class java.lang.Object