public class DataNetService extends java.lang.Thread implements Serviceable<Data>, java.lang.AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
DataNetService.Builder
builder.
|
static class |
DataNetService.DataNetRequest
NetRequest.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close service.
|
int |
getIndex()
Returns index of service.
|
void |
onClose()
Close connection event.
|
void |
run() |
void |
send(Data message)
Sent to client text or file.
|
void |
sendClose(Data message)
Close client connection after sent to client text or file.
|
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, yieldpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic int getIndex()
public void close()
close in interface java.lang.AutoCloseablepublic void send(Data message)
public void sendClose(Data message)
public void onClose()
ServiceableonClose in interface Serviceable<Data>