This is a concrete implementation of PushContext interface which is to be injected by
@Push.
Push
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static final long | |
| private Map | |
| private WebsocketSessionManager | |
| private WebsocketUserManager | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | WebsocketPushContext(String channel, WebsocketSessionManager socketSessions, WebsocketUserManager socketUsers)
Creates a socket push context whereby the mutable map of session and view scope channel identifiers is
referenced, so it's still available when another thread invokes |
| Modifier and Type | Method and Description |
|---|---|
| public Set | send(Object
The push message object. message)Implements javax. @Push.
|
| public <S extends Serializable> Set | send(Object
The push message object. message, S The user to which the push message object must be delivered to. user)Implements javax. @Push, targeted
to the given user as identified by <f:websocket user>.
|
| public <S extends Serializable> Map | send(Object
The push message object. message, Collection<S> The users to which the push message object must be delivered to. users)Implements javax. @Push, targeted
to the given users as identified by <f:websocket user>.
|
| channel | back to summary |
|---|---|
| private String channel | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sessionScope | back to summary |
|---|---|
| private Map<String, String> sessionScope | |
| socketSessions | back to summary |
|---|---|
| private WebsocketSessionManager socketSessions | |
| socketUsers | back to summary |
|---|---|
| private WebsocketUserManager socketUsers | |
| viewScope | back to summary |
|---|---|
| private Map<String, String> viewScope | |
| WebsocketPushContext | back to summary |
|---|---|
| public WebsocketPushContext(String channel, WebsocketSessionManager socketSessions, WebsocketUserManager socketUsers) Creates a socket push context whereby the mutable map of session and view scope channel identifiers is
referenced, so it's still available when another thread invokes | |
| send | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Send given message object to the push socket channel as identified by
| |
| send | back to summary |
|---|---|
| public <S extends Serializable> Set Implements javax. Doc from javax. Send given message object to the push socket channel as identified by
| |
| send | back to summary |
|---|---|
| public <S extends Serializable> Map Implements javax. Doc from javax. Send given message object to the push socket channel as identified by
| |