Uses of Interface
com.pushtechnology.diffusion.client.session.SessionFactory
Packages that use SessionFactory
Package
Description
Client API.
Client API : Sessions.
-
Uses of SessionFactory in com.pushtechnology.diffusion.client
Methods in com.pushtechnology.diffusion.client that return SessionFactoryModifier and TypeMethodDescriptionDiffusion.Implementation.getSessionFactory()
static SessionFactory
Diffusion.sessions()
Returns the shared session factory. -
Uses of SessionFactory in com.pushtechnology.diffusion.client.session
Methods in com.pushtechnology.diffusion.client.session that return SessionFactoryModifier and TypeMethodDescriptionSessionFactory.connectionTimeout
(int timeout) Sets the connection timeout.SessionFactory.credentials
(Credentials credentials) Set credentials.SessionFactory.customCredentials
(byte[] bytes) Set credentials of typeCredentials.Type.CUSTOM
.SessionFactory.errorHandler
(Session.ErrorHandler errorHandler) Nominates an error handler for a session.Set the address of the HTTP Proxy that should be used to make connections to the server.SessionFactory.httpProxy
(String host, int port, HTTPProxyAuthentication authentication) A variant ofhttpProxy(String, int)
that provides authentication details to the HTTP proxy.SessionFactory.initialRetryStrategy
(RetryStrategy strategy) Sets the initial retry strategy.SessionFactory.inputBufferSize
(int size) Sets the input buffer size for socket connection buffers and message receiving buffers.SessionFactory.listener
(Session.Listener listener) Nominates a listener for session events from a session.SessionFactory.localSocketAddress
(SocketAddress address) Set the optional local socket address, used prior to connection.SessionFactory.maximumMessageSize
(int size) Set the maximum message size.SessionFactory.maximumQueueSize
(int size) Sets the maximum size of the outbound message queue for the connection.SessionFactory.noCredentials()
Set credentials toCredentials.Type.NONE
.SessionFactory.noReconnection()
Disable reconnection.SessionFactory.outputBufferSize
(int size) Sets the output buffer size for socket connection buffers and message sending buffers.Set credentials of typeCredentials.Type.PLAIN_PASSWORD
.Sets the security principal.SessionFactory.properties
(Map<String, String> properties) Sets user-defined session property values.Sets a user-defined session property value.SessionFactory.reconnectionStrategy
(ReconnectionStrategy strategy) Sets the reconnection strategy.SessionFactory.reconnectionTimeout
(int timeout) Sets the reconnection timeout.SessionFactory.recoveryBufferSize
(int size) Set the recovery buffer size.SessionFactory.requestPath
(String requestPath) Set the path used for HTTP requests.SessionFactory.secureTransport
(boolean secureTransport) Set if a secure transport should be used.SessionFactory.serverHost
(String host) Set the host name of the server to connect the session to.SessionFactory.serverPort
(int port) Set the port of the server to connect the session to.SessionFactory.sslContext
(SSLContext context) Sets the SSL Context if a secure connection is required.SessionFactory.transports
(SessionAttributes.Transport... transports) Set the transports to use to connect the session to the server.SessionFactory.writeTimeout
(int timeout) Sets the write timeout value for blocking writes.