|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.atmosphere.cpr.AsyncSupportListenerAdapter
org.primefaces.push.PushContextImpl
public class PushContextImpl
Constructor Summary | |
---|---|
PushContextImpl()
|
Method Summary | ||
---|---|---|
PushContext |
addListener(PushContextListener p)
Add an event listener. |
|
|
delay(String channel,
T t,
int time,
TimeUnit unit)
Delay the push operation until the time expires. |
|
void |
onClose(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
|
|
void |
onSuspend(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
|
|
void |
onTimeout(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response)
|
|
|
push(String channel,
T t)
Push message to the one or more channel of communication. |
|
PushContext |
removeListener(PushContextListener p)
Remove a event listener. |
|
|
schedule(String channel,
T t,
int time,
TimeUnit unit)
Schedule a period push operation. |
Methods inherited from class org.atmosphere.cpr.AsyncSupportListenerAdapter |
---|
onDestroyed, onResume |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PushContextImpl()
Method Detail |
---|
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 message
public <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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |