public class Factory extends Object
newPublicChannel(String)
creates a new instance of that class every
time it is called.
- any method that starts with "get", such as getEventQueue()
returns
a singleton. These are lazily constructed and their access methods should be
synchronized for this reason.Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
ChannelManager |
getChannelManager() |
InternalConnection |
getConnection(String apiKey,
PusherOptions options) |
ExecutorService |
getEventQueue() |
ScheduledExecutorService |
getTimers() |
PresenceChannelImpl |
newPresenceChannel(InternalConnection connection,
String channelName,
Authorizer authorizer) |
PrivateChannelImpl |
newPrivateChannel(InternalConnection connection,
String channelName,
Authorizer authorizer) |
ChannelImpl |
newPublicChannel(String channelName) |
org.java_websocket.client.WebSocketClient |
newWebSocketClientWrapper(URI uri,
WebSocketListener proxy) |
void |
shutdownThreads() |
public InternalConnection getConnection(String apiKey, PusherOptions options)
public org.java_websocket.client.WebSocketClient newWebSocketClientWrapper(URI uri, WebSocketListener proxy) throws SSLException
SSLException
public ExecutorService getEventQueue()
public ScheduledExecutorService getTimers()
public ChannelImpl newPublicChannel(String channelName)
public PrivateChannelImpl newPrivateChannel(InternalConnection connection, String channelName, Authorizer authorizer)
public PresenceChannelImpl newPresenceChannel(InternalConnection connection, String channelName, Authorizer authorizer)
public ChannelManager getChannelManager()
public void shutdownThreads()
Copyright © 2017 Pusher. All rights reserved.