Package com.pusher.client.user.impl
Class InternalUser
- java.lang.Object
-
- com.pusher.client.user.impl.InternalUser
-
- All Implemented Interfaces:
User
public class InternalUser extends java.lang.Object implements User
-
-
Constructor Summary
Constructors Constructor Description InternalUser(com.pusher.client.connection.impl.InternalConnection connection, UserAuthenticator userAuthenticator, Factory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(java.lang.String eventName, SubscriptionEventListener listener)Binds aSubscriptionEventListenerto an event.voidbindGlobal(SubscriptionEventListener listener)Binds aSubscriptionEventListenerto all events.voidhandleEvent(PusherEvent event)voidsignin()voidunbind(java.lang.String eventName, SubscriptionEventListener listener)Unbinds a previously boundSubscriptionEventListenerfrom an event.voidunbindGlobal(SubscriptionEventListener listener)Unbinds a previously boundSubscriptionEventListenerfrom global events.java.lang.StringuserId()
-
-
-
Constructor Detail
-
InternalUser
public InternalUser(com.pusher.client.connection.impl.InternalConnection connection, UserAuthenticator userAuthenticator, Factory factory)
-
-
Method Detail
-
signin
public void signin() throws AuthenticationFailureException
- Throws:
AuthenticationFailureException
-
handleEvent
public void handleEvent(PusherEvent event)
-
userId
public java.lang.String userId()
-
bind
public void bind(java.lang.String eventName, SubscriptionEventListener listener)
Description copied from interface:UserBinds aSubscriptionEventListenerto an event. TheSubscriptionEventListenerwill be notified whenever the specified event is received for this user.
-
bindGlobal
public void bindGlobal(SubscriptionEventListener listener)
Description copied from interface:UserBinds aSubscriptionEventListenerto all events. TheSubscriptionEventListenerwill be notified whenever an event is received for this user.- Specified by:
bindGlobalin interfaceUser- Parameters:
listener- A listener to receive notifications when the event is received.
-
unbind
public void unbind(java.lang.String eventName, SubscriptionEventListener listener)
Description copied from interface:UserUnbinds a previously bound
SubscriptionEventListenerfrom an event. TheSubscriptionEventListenerwill no longer be notified whenever the specified event is received for this user.
-
unbindGlobal
public void unbindGlobal(SubscriptionEventListener listener)
Description copied from interface:UserUnbinds a previously bound
SubscriptionEventListenerfrom global events. TheSubscriptionEventListenerwill no longer be notified whenever the any event is received for this user.- Specified by:
unbindGlobalin interfaceUser- Parameters:
listener- The listener to unbind from the event.
-
-