EventBus
public class PushContextImpl extends org.atmosphere.cpr.AsyncSupportListenerAdapter implements PushContext
Constructor and Description |
---|
PushContextImpl(org.atmosphere.cpr.MetaBroadcaster metaBroadcaster)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PushContext |
addListener(PushContextListener p)
Deprecated.
Add an event listener.
|
<T> Future<T> |
delay(String channel,
T t,
int time,
TimeUnit unit)
Deprecated.
Delay the push operation until the time expires.
|
void |
onClose(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
Deprecated.
|
void |
onDestroyed(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
Deprecated.
|
void |
onResume(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
Deprecated.
|
void |
onSuspend(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
Deprecated.
|
void |
onTimeout(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
Deprecated.
|
<T> Future<T> |
push(String channel,
T t)
Deprecated.
Push message to the one or more channel of communication.
|
PushContext |
removeListener(PushContextListener p)
Deprecated.
Remove a event listener.
|
<T> Future<T> |
schedule(String channel,
T t,
int time,
TimeUnit unit)
Deprecated.
Schedule a period push operation.
|
public PushContextImpl(org.atmosphere.cpr.MetaBroadcaster metaBroadcaster)
public <T> Future<T> push(String channel, T t)
PushContext
push
in interface PushContext
T
- The type of the messagechannel
- a channel of communication.t
- a messagepublic <T> Future<T> schedule(String channel, T t, int time, TimeUnit unit)
PushContext
schedule
in interface PushContext
T
- The type of the messagechannel
- a channel of communication.t
- a messagetime
- the timeunit
- the @TimeUnit
public <T> Future<T> delay(String channel, T t, int time, TimeUnit unit)
PushContext
delay
in interface PushContext
T
- The type of the messagechannel
- a channel of communication.t
- a messagetime
- the timeunit
- the @TimeUnit
public PushContext addListener(PushContextListener p)
PushContext
addListener
in interface PushContext
p
- PushContextListener
public PushContext removeListener(PushContextListener p)
PushContext
removeListener
in interface PushContext
p
- PushContextListener
public void onTimeout(org.atmosphere.cpr.AtmosphereRequest request, org.atmosphere.cpr.AtmosphereResponse response)
onTimeout
in interface org.atmosphere.cpr.AsyncSupportListener
onTimeout
in class org.atmosphere.cpr.AsyncSupportListenerAdapter
public void onClose(org.atmosphere.cpr.AtmosphereRequest request, org.atmosphere.cpr.AtmosphereResponse response)
onClose
in interface org.atmosphere.cpr.AsyncSupportListener
onClose
in class org.atmosphere.cpr.AsyncSupportListenerAdapter
public void onResume(org.atmosphere.cpr.AtmosphereRequest request, org.atmosphere.cpr.AtmosphereResponse response)
onResume
in interface org.atmosphere.cpr.AsyncSupportListener
onResume
in class org.atmosphere.cpr.AsyncSupportListenerAdapter
public void onDestroyed(org.atmosphere.cpr.AtmosphereRequest request, org.atmosphere.cpr.AtmosphereResponse response)
onDestroyed
in interface org.atmosphere.cpr.AsyncSupportListener
onDestroyed
in class org.atmosphere.cpr.AsyncSupportListenerAdapter
public void onSuspend(org.atmosphere.cpr.AtmosphereRequest request, org.atmosphere.cpr.AtmosphereResponse response)
onSuspend
in interface org.atmosphere.cpr.AsyncSupportListener
onSuspend
in class org.atmosphere.cpr.AsyncSupportListenerAdapter
Copyright © 2015. All rights reserved.