de.fhg.igd.logging.sun
Class AsynchronousStreamHandler.SunMessageDispatcher
java.lang.Object
java.lang.Thread
de.fhg.igd.logging.AbstractAsynchronousMessageDispatcher
de.fhg.igd.logging.sun.AsynchronousStreamHandler.SunMessageDispatcher
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- AsynchronousStreamHandler
- private static class AsynchronousStreamHandler.SunMessageDispatcher
- extends AbstractAsynchronousMessageDispatcher
This is the dispatcher implementation for the Sun logging
mechanism.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
AsynchronousStreamHandler.SunMessageDispatcher
public AsynchronousStreamHandler.SunMessageDispatcher(Messenger messenger,
int maxbuf)
printLossMessage
protected void printLossMessage(Object ref)
- Description copied from class:
AbstractAsynchronousMessageDispatcher
- Print a notification about automatic message discarding to
System.out
.
- Specified by:
printLossMessage
in class AbstractAsynchronousMessageDispatcher
- Parameters:
ref
- The message to refer to and get information from
createLossEntry
protected Object createLossEntry(int lost,
Object ref)
- Description copied from class:
AbstractAsynchronousMessageDispatcher
- Create a notification log entry informing about lost messages.
- Specified by:
createLossEntry
in class AbstractAsynchronousMessageDispatcher
- Parameters:
lost
- The number of lost messagesref
- The message to refer to and get information from
- Returns:
- The notification message object
toString
public String toString()
- Overrides:
toString
in class AbstractAsynchronousMessageDispatcher
Copyright © Fraunhofer Gesellschaft. All
Rights Reserved.