regionQueue
Class ServerQueue.QueueWriter

java.lang.Object
  extended by com.gemstone.gemfire.cache.util.CacheWriterAdapter
      extended by regionQueue.ServerQueue.QueueWriter
All Implemented Interfaces:
CacheCallback, CacheWriter
Enclosing class:
ServerQueue

 class ServerQueue.QueueWriter
extends CacheWriterAdapter

A CacheWriter that adds an element to the tail of the queue.


Constructor Summary
ServerQueue.QueueWriter()
           
 
Method Summary
 void beforeCreate(EntryEvent event)
          Do the same work as beforeUpdate
 void beforeUpdate(EntryEvent event)
          Add the new value of the region entry to queue region.
 
Methods inherited from class com.gemstone.gemfire.cache.util.CacheWriterAdapter
beforeDestroy, beforeRegionClear, beforeRegionDestroy, close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerQueue.QueueWriter

ServerQueue.QueueWriter()
Method Detail

beforeCreate

public void beforeCreate(EntryEvent event)
                  throws CacheWriterException
Do the same work as beforeUpdate

Specified by:
beforeCreate in interface CacheWriter
Overrides:
beforeCreate in class CacheWriterAdapter
Throws:
CacheWriterException

beforeUpdate

public void beforeUpdate(EntryEvent event)
                  throws CacheWriterException
Add the new value of the region entry to queue region.

Specified by:
beforeUpdate in interface CacheWriter
Overrides:
beforeUpdate in class CacheWriterAdapter
Throws:
CacheWriterException - If the element was not added to the queue. If the queue was full, then the cause of the exception is null.


Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.