SmartFrog 3.10.000

org.smartfrog.sfcore.logging
Class LogAsyncQueue

java.lang.Object
  extended by org.smartfrog.sfcore.logging.LogAsyncQueue

public class LogAsyncQueue
extends java.lang.Object

LogAsyncQueue implements a queue of log method invocations with methods to enqueue and dequeue requests. This is used by LogImplAsyncWrapper.


Nested Class Summary
protected  class LogAsyncQueue.LogRequest
          log method invocations are queued as LogRequest objects.
 
Constructor Summary
LogAsyncQueue()
          construct a queue
 
Method Summary
 LogAsyncQueue.LogRequest dequeueLogRequest()
          A blocking call to obtain the next method from the queue.
 void enqueueLogRequest(Log logImpl, java.lang.reflect.Method method, java.lang.Object[] params)
          Add a new method to the queue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogAsyncQueue

public LogAsyncQueue()
construct a queue

Method Detail

enqueueLogRequest

public void enqueueLogRequest(Log logImpl,
                              java.lang.reflect.Method method,
                              java.lang.Object[] params)
Add a new method to the queue

Parameters:
logImpl - - the applicable log
method - - the method to invoke
params - - the parameters for the method

dequeueLogRequest

public LogAsyncQueue.LogRequest dequeueLogRequest()
A blocking call to obtain the next method from the queue. This method blocks if the queue is empty. Note that it can return null at any time. The method should be called repeatedly until a value is obtained.

Returns:
- the method or null

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP