public class SampleSocketThread extends Thread
Modifier and Type | Class and Description |
---|---|
static interface |
SampleSocketThread.SocketHandler |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
SampleSocketThread(SampleSocketThread.SocketHandler handler)
Creates a new
SampleSocketThread instance. |
Modifier and Type | Method and Description |
---|---|
void |
addForAccept(InetSocketAddress isa) |
void |
addIOInterface(IOInterface s) |
void |
removeIOInterface(IOInterface s) |
void |
run() |
activeCount, checkAccess, clone, 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
public SampleSocketThread(SampleSocketThread.SocketHandler handler) throws IOException
SampleSocketThread
instance.handler
- IOException
public void addIOInterface(IOInterface s)
public void addForAccept(InetSocketAddress isa)
public void removeIOInterface(IOInterface s)
Copyright © 2019 "Tigase, Inc.". All rights reserved.