|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.lanbox.udp
Class UdpSender
java.lang.Object java.lang.Thread be.lassi.lanbox.udp.UdpSender
- All Implemented Interfaces:
- java.lang.Runnable
public class UdpSender
- extends java.lang.Thread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
UdpSender(ShowContext context)
Create a new instance. |
Method Summary | |
---|---|
void |
close()
|
void |
run()
|
void |
write(int[] levels)
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
UdpSender
public UdpSender(ShowContext context)
- Create a new instance.
The priority is set higher than the process from which this thread is started. This is done to ensure smooth dimming. Performing the communications to write new values to the Dongle is more important than performing user interface updates.
Note that the thread is marked as a daemon thread. This means that the Java Virtual Machine can exit without the application having to explicitely stop this thread.
- Parameters:
context
-
Method Detail |
---|
close
public void close()
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
write
public void write(int[] levels) throws java.lang.Exception
- Throws:
java.lang.Exception
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |