public class ClientImpl extends java.lang.Object implements Client, Protocol.ProtocolEventListener
Modifier and Type | Class and Description |
---|---|
class |
ClientImpl.PooledXProtocol |
Client.ClientProperty
Protocol.ProtocolEventListener.EventType
Constructor and Description |
---|
ClientImpl(java.lang.String url,
java.util.Properties clientProps) |
ClientImpl(java.lang.String url,
java.lang.String clientPropsJson) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close
Client . |
Session |
getSession()
Get
Session from pool or the new one. |
void |
handleEvent(Protocol.ProtocolEventListener.EventType type,
java.lang.Object info,
java.lang.Throwable reason) |
public ClientImpl(java.lang.String url, java.lang.String clientPropsJson)
public ClientImpl(java.lang.String url, java.util.Properties clientProps)
public Session getSession()
Client
Session
from pool or the new one.getSession
in interface Client
Session
public void close()
Client
Client
.
Closes all Sessions it has created, and destroys the managed pool.
Calling the method close
on a Client
object that is already closed is a no-op.
public void handleEvent(Protocol.ProtocolEventListener.EventType type, java.lang.Object info, java.lang.Throwable reason)
handleEvent
in interface Protocol.ProtocolEventListener