|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This represents a physical persistent connection between the client and
server. PushConnections provide realtime communication from
the server to the client.
Since all inbound connections from clients are managed by the application
server, when PushConnections are established, a thread is
allocated from the application server's thread pool to handle the request.
During the course of a normal request / response cycle, these threads are
returned to the pool quickly. However, when the connection remains open,
(as is the case with a request establishing a PushConnection),
the thread may not be returned and is in use for the life of the connection.
Therefore:
PushConnection
that is open. This is the behavior of the container and it is
unavoidable.
PushConnections.
You can retreive this object for a particular session by using
PushConnectionManager.
In certain scenarios, PushConnections may need to be flushed
using a FlushPolicy.
Statistics about the data flowing over a PushConnection may be obtained
from the ConnectionStatistics object on each connection.
PushConnectionManager| Method Summary | |
void |
close()
Closes this PushConnection. |
ConnectionStatistics |
getConnectionStatistics()
Gets the ConnectionStatistics for this PushConnection. |
FlushPolicy |
getFlushPolicy()
Gets the FlushPolicy for this PushConnection. |
ServerSession |
getServerSession()
Returns the ServerSession with which this PushConnection object is associated. |
boolean |
isOpen()
Returns true if the PushConnection is currently open. |
void |
setFlushPolicy(FlushPolicy policy)
Sets the FlushPolicy for this PushConnection. |
| Method Detail |
public ServerSession getServerSession()
public void close()
PushConnectionManager.establishPushConnection(com.nexaweb.server.session.ServerSession).
public boolean isOpen()
public void setFlushPolicy(FlushPolicy policy)
FlushPolicy for this PushConnection.
policy - The policy that will manage flushing this connection.public FlushPolicy getFlushPolicy()
FlushPolicy for this PushConnection.
public ConnectionStatistics getConnectionStatistics()
ConnectionStatistics for this PushConnection.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||