EventBuspublic 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)
PushContextpush in interface PushContextT - The type of the messagechannel - a channel of communication.t - a messagepublic <T> Future<T> schedule(String channel, T t, int time, TimeUnit unit)
PushContextschedule in interface PushContextT - The type of the messagechannel - a channel of communication.t - a messagetime - the timeunit - the TimeUnitpublic <T> Future<T> delay(String channel, T t, int time, TimeUnit unit)
PushContextdelay in interface PushContextT - The type of the messagechannel - a channel of communication.t - a messagetime - the timeunit - the TimeUnitpublic PushContext addListener(PushContextListener p)
PushContextaddListener in interface PushContextp - PushContextListenerpublic PushContext removeListener(PushContextListener p)
PushContextremoveListener in interface PushContextp - PushContextListenerpublic void onTimeout(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
onTimeout in interface org.atmosphere.cpr.AsyncSupportListeneronTimeout in class org.atmosphere.cpr.AsyncSupportListenerAdapterpublic void onClose(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
onClose in interface org.atmosphere.cpr.AsyncSupportListeneronClose in class org.atmosphere.cpr.AsyncSupportListenerAdapterpublic void onResume(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
onResume in interface org.atmosphere.cpr.AsyncSupportListeneronResume in class org.atmosphere.cpr.AsyncSupportListenerAdapterpublic void onDestroyed(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
onDestroyed in interface org.atmosphere.cpr.AsyncSupportListeneronDestroyed in class org.atmosphere.cpr.AsyncSupportListenerAdapterpublic void onSuspend(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
onSuspend in interface org.atmosphere.cpr.AsyncSupportListeneronSuspend in class org.atmosphere.cpr.AsyncSupportListenerAdapterCopyright © 2018. All rights reserved.