Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.log
Class QueuedLoggingHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by oracle.ide.log.QueuedLoggingHandler


public final class QueuedLoggingHandler
extends java.util.logging.Handler

An implementation of Handler that logs all messages to a blocking queue.

Since:
11.1.1

Constructor Summary
QueuedLoggingHandler()
           

 

Method Summary
 void close()
           
 void flush()
           
 boolean isLoggable(java.util.logging.LogRecord record)
           
 java.util.logging.LogRecord poll()
          Polls and removes the next record from the queue.
 void publish(java.util.logging.LogRecord record)
          Publish a record.
 java.util.logging.LogRecord take()
          Takes the next record from the queue.

 

Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

QueuedLoggingHandler

public QueuedLoggingHandler()

Method Detail

take

public java.util.logging.LogRecord take()
                                 throws java.lang.InterruptedException
Takes the next record from the queue. This method will block until a record is available.
Returns:
a log record.
Throws:
java.lang.InterruptedException - if no record is available.

poll

public java.util.logging.LogRecord poll()
Polls and removes the next record from the queue. This method will not block, but may return null.
Returns:
a record.

publish

public void publish(java.util.logging.LogRecord record)
Publish a record.
Specified by:
publish in class java.util.logging.Handler
Parameters:
record -

flush

public void flush()
Specified by:
flush in class java.util.logging.Handler

close

public void close()
Specified by:
close in class java.util.logging.Handler

isLoggable

public boolean isLoggable(java.util.logging.LogRecord record)
Overrides:
isLoggable in class java.util.logging.Handler

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.