Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nectar.reda.recordeditor.server
Class DeleteRecordAction  view DeleteRecordAction download DeleteRecordAction.java

java.lang.Object
  extended bynectar.reda.server.action.AdminAction
      extended bynectar.reda.recordeditor.server.DeleteRecordAction

public class DeleteRecordAction
extends nectar.reda.server.action.AdminAction


Field Summary
 
Fields inherited from class nectar.reda.server.action.AdminAction
 
Constructor Summary
DeleteRecordAction()
          Creates a new instance of DeleteRecordAction
 
Method Summary
 void execute(nectar.reda.client.action.ClientAction action, nectar.reda.server.Session session)
           
 boolean isHeavyAction()
          Let's the ActionPump that is going to execute this action know whether this action will probably require a long time or not to complete.
 
Methods inherited from class nectar.reda.server.action.AdminAction
processAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteRecordAction

public DeleteRecordAction()
Creates a new instance of DeleteRecordAction

Method Detail

execute

public void execute(nectar.reda.client.action.ClientAction action,
                    nectar.reda.server.Session session)
             throws nectar.reda.client.action.ClientActionException

isHeavyAction

public boolean isHeavyAction()
Description copied from class: nectar.reda.server.action.AdminAction
Let's the ActionPump that is going to execute this action know whether this action will probably require a long time or not to complete. Any "blocking" actions, ie, actions that make database queries, access files, or depend on the actions of another thread to execute should return true for this method. All actions that are very simple, for example looking up a status variable that's loaded in memory should return true.

The behaviour of the ActionPump may be affected by the result of this method, executing not heavy actions in the same thread as the ServerInstance that reads and writes Action objects from and to the network. Heavy Actions are passed to a pool thread that execute actions separately. This mechanism allows much faster response for simple actions, taking advantage of the asynchronic response pattern inherent to Reda StreamLayers...

If this method is not overridden, it will return false by default.