com.sun.sgs.impl.service.session
Class ClientSessionHandler.SendMessageAction

java.lang.Object
  extended by com.sun.sgs.impl.service.session.ClientSessionHandler.SendMessageAction
All Implemented Interfaces:
ClientSessionServiceImpl.Action
Enclosing class:
ClientSessionHandler

 class ClientSessionHandler.SendMessageAction
extends Object
implements ClientSessionServiceImpl.Action

An action to send a message. This commit action is created by the associated session's ClientSessionImpl when processing a request to send a message to the client.

When this action is executed, it notifies the session's SessionProtocol to send the message obtained from the ClientSessionImpl.SendEvent specified during construction.


Constructor Summary
ClientSessionHandler.SendMessageAction(ClientSessionImpl.SendEvent sendEvent)
          Constructs and instance with the specified sendEvent.
 
Method Summary
 boolean flush()
          Performs the commit action and returns true if further actions should be processed after this one, and returns false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientSessionHandler.SendMessageAction

ClientSessionHandler.SendMessageAction(ClientSessionImpl.SendEvent sendEvent)
Constructs and instance with the specified sendEvent.

Parameters:
sendEvent - a send event containing a message and delivery guarantee
Method Detail

flush

public boolean flush()
Performs the commit action and returns true if further actions should be processed after this one, and returns false otherwise. A false value would be returned, for example, if an action disconnects the client session or notifies the client of login failure.

Specified by:
flush in interface ClientSessionServiceImpl.Action

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved