|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.util.TimeoutAbstractObject
flex.messaging.client.FlexClient
public class FlexClient
Represents a Flex client application instance on the server.
| Nested Class Summary | |
|---|---|
class |
FlexClient.AsyncPollWithTimeout
Helper class for handling async poll requests. |
| Field Summary | |
|---|---|
static String |
FLEX_CLIENT_LOG_CATEGORY
Log category for FlexClient related messages. |
| Method Summary | |
|---|---|
void |
addClientAttributeListener(FlexClientAttributeListener listener)
Adds a FlexClient attribute listener that will be notified when an attribute is added, removed or changed. |
static void |
addClientCreatedListener(FlexClientListener listener)
Adds a create listener that will be notified when new FlexClients are created. |
void |
addClientDestroyedListener(FlexClientListener listener)
Adds a destroy listener that will be notified when the FlexClient is destroyed. |
Object |
getAttribute(String name)
Returns the attribute bound to the specified name for the FlexClient, or null if no attribute is bound under the name. |
Enumeration |
getAttributeNames()
Returns a snapshot of the names of all attributes bound to the FlexClient. |
List |
getFlexSessions()
Returns a snapshot of the FlexSessions associated with the FlexClient when this method is invoked. |
String |
getId()
Returns the unique Id for the FlexClient. |
long |
getLastUse()
Override TimeoutAbstractObject.getLastUse() to make timeout
dependent upon FlexClient inactivity but also upon the presence of an active push-enabled session,
async or waited poll, or registered endpoint push handler (all of which indicate that a client has
an active, open connection to the server). |
List |
getMessageClients()
Returns a snapshot of the MessageClients (subscriptions) associated with the FlexClient when this method is invoked. |
int |
getSessionCount()
|
int |
getSubscriptionCount()
|
void |
invalidate()
Invalidates the FlexClient. |
boolean |
isValid()
Returns true if the FlexClient is valid; false if it has been invalidated. |
void |
removeAttribute(String name)
Removes the attribute bound to the specified name for the FlexClient. |
void |
removeClientAttributeListener(FlexClientAttributeListener listener)
Removes a FlexClient attribute listener. |
static void |
removeClientCreatedListener(FlexClientListener listener)
Removes a FlexClient created listener. |
void |
removeClientDestroyedListener(FlexClientListener listener)
Removes a FlexClient destroyed listener. |
void |
setAttribute(String name,
Object value)
Binds an attribute value for the FlexClient under the specified name. |
| Methods inherited from class flex.messaging.util.TimeoutAbstractObject |
|---|
cancelTimeout, getTimeoutFuture, getTimeoutManager, getTimeoutPeriod, getTimeoutTask, setLastUse, setTimeoutFuture, setTimeoutManager, setTimeoutPeriod, setTimeoutTask, updateLastUse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.FlexSessionListener |
|---|
sessionCreated, sessionDestroyed |
| Methods inherited from interface flex.messaging.MessageClientListener |
|---|
messageClientCreated, messageClientDestroyed |
| Field Detail |
|---|
public static final String FLEX_CLIENT_LOG_CATEGORY
| Method Detail |
|---|
public static void addClientCreatedListener(FlexClientListener listener)
listener - The listener to add.FlexClientListenerpublic static void removeClientCreatedListener(FlexClientListener listener)
listener - The listener to remove.FlexClientListenerpublic void addClientAttributeListener(FlexClientAttributeListener listener)
listener - The listener to add.public void addClientDestroyedListener(FlexClientListener listener)
listener - The listener to add.FlexClientListenerpublic Object getAttribute(String name)
name - The name the attribute is bound to.
public Enumeration getAttributeNames()
public long getLastUse()
TimeoutAbstractObject.getLastUse() to make timeout
dependent upon FlexClient inactivity but also upon the presence of an active push-enabled session,
async or waited poll, or registered endpoint push handler (all of which indicate that a client has
an active, open connection to the server).
getLastUse in class TimeoutAbstractObjectpublic void invalidate()
public boolean isValid()
public List getFlexSessions()
public int getSessionCount()
public int getSubscriptionCount()
public List getMessageClients()
public String getId()
public void removeAttribute(String name)
name - The name of the attribute to remove.public void removeClientAttributeListener(FlexClientAttributeListener listener)
listener - The listener to remove.public void removeClientDestroyedListener(FlexClientListener listener)
listener - The listener to remove.FlexClientListener
public void setAttribute(String name,
Object value)
name - The name to bind the attribute under.value - The value of the attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/client/FlexClient.html