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, yield
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public int getIndex()
public void close()
close
in interface java.lang.AutoCloseable
public void send(Data message)
public void sendClose(Data message)
public void onClose()
Serviceable
onClose
in interface Serviceable<Data>