|
AeroGear SimplePush Server Netty 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.simplepush.server.netty.UserAgents
public class UserAgents
Represents a mapping of connected UserAgents in a SimplePush Server.
| Method Summary | |
|---|---|
void |
add(String uaid,
org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext session)
Adds the a new UserAgent "session". |
Collection<UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext>> |
all()
Returns all the UserAgents. |
boolean |
contains(String uaid)
Determines if a UserAgent exists for the passed-in user agent identifier. |
UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext> |
get(String uaid)
Returns the UserAgent for the specified user agent identifier. |
static UserAgents |
getInstance()
Returns the singleton instance. |
void |
updateAccessedTime(String uaid)
Updates the timestamp for the UserAgent matching the passed-in user agent identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UserAgents getInstance()
UserAgents the singleton instance.
public void add(String uaid,
org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext session)
uaid - the unique identifier for the UserAgent.session - the SockJsSessionContext for the connected UserAgent.public UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext> get(String uaid)
UserAgent for the specified user agent identifier.
uaid - the UserAgent id.
UserAgent matching the passed in user agent identifier.public Collection<UserAgent<org.jboss.aerogear.io.netty.handler.codec.sockjs.SockJsSessionContext>> all()
UserAgents.
Collection<UserAgent> all the UserAgent.public boolean contains(String uaid)
UserAgent exists for the passed-in user agent identifier.
uaid - the user agent identifier.
true if a UserAgent exists, or false otherwise.public void updateAccessedTime(String uaid)
UserAgent does not exist nothing is performed.
uaid - the user agent identifier to update.
|
AeroGear SimplePush Server Netty 0.11.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||