jtge.engine.handler
Class Buffer

java.lang.Object
  extended byjtge.engine.handler.AbstractProducer
      extended byjtge.engine.handler.AbstractHandler
          extended byjtge.engine.handler.Buffer
All Implemented Interfaces:
IConsumer

public class Buffer
extends AbstractHandler

Provides a handler to bufferize commands.

This handler bufferizes and multiplexes received commands and releases the resulting command when triggered.

Version:
$Revision: 1.3 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Constructor Summary
Buffer(IConsumer consumer)
          Create a new buffer handler.
 
Method Summary
 void handle(ICommand command)
          Handle a command.
 void release()
          Forward the bufferized resulting command to the target consumer.
 
Methods inherited from class jtge.engine.handler.AbstractProducer
forward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Buffer

public Buffer(IConsumer consumer)
Create a new buffer handler.

Parameters:
consumer - the target consumer
Method Detail

handle

public final void handle(ICommand command)
Handle a command.

Parameters:
command - the command to handle

release

public final void release()
Forward the bufferized resulting command to the target consumer.



Copyright © 2003-2005 . All Rights Reserved.