com.octo.captcha.engine.bufferedengine
Class SimpleBufferedEngineContainer

java.lang.Object
  extended by com.octo.captcha.engine.bufferedengine.BufferedEngineContainer
      extended by com.octo.captcha.engine.bufferedengine.SimpleBufferedEngineContainer
All Implemented Interfaces:
CaptchaEngine

public class SimpleBufferedEngineContainer
extends BufferedEngineContainer

Simple implmentation of the BufferedEngineContainer with ClockDaemon


Nested Class Summary
 class SimpleBufferedEngineContainer.SimpleDiskFeeder
           
 class SimpleBufferedEngineContainer.SimpleDiskToMemory
           
 
Field Summary
 
Fields inherited from class com.octo.captcha.engine.bufferedengine.BufferedEngineContainer
config, engine, persistentBuffer, persistentFeedings, persistentMemoryHits, persistentToVolatileSwaps, volatileBuffer, volatileMemoryHits
 
Constructor Summary
SimpleBufferedEngineContainer(CaptchaEngine engine, CaptchaBuffer memoryBuffer, CaptchaBuffer diskBuffer, ContainerConfiguration containerConfiguration, int feedPeriod, int swapPeriod)
           
 
Method Summary
protected  void startDaemon()
           
protected  void startScheduler()
           
protected  void stopDaemon()
           
 
Methods inherited from class com.octo.captcha.engine.bufferedengine.BufferedEngineContainer
closeBuffers, feedPersistentBuffer, getConfig, getFactories, getNextCaptcha, getNextCaptcha, getPersistentBuffer, getPersistentFeedings, getPersistentMemoryHits, getPersistentToVolatileSwaps, getVolatileBuffer, getVolatileMemoryHits, setFactories, swapCaptchasFromPersistentToVolatileMemory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleBufferedEngineContainer

public SimpleBufferedEngineContainer(CaptchaEngine engine,
                                     CaptchaBuffer memoryBuffer,
                                     CaptchaBuffer diskBuffer,
                                     ContainerConfiguration containerConfiguration,
                                     int feedPeriod,
                                     int swapPeriod)
Method Detail

startScheduler

protected void startScheduler()
See Also:
com.octo.captcha.engine.bufferedengine.BufferedEngineContainer#startScheduler()

stopDaemon

protected void stopDaemon()

startDaemon

protected void startDaemon()


Copyright 2003-2009 JCaptcha. All Rights Reserved.