Class HttpEndpointListener
java.lang.Object
java.lang.Thread
com.predic8.membrane.core.transport.http.HttpEndpointListener
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionHttpEndpointListener(IpPort p, HttpTransport transport, SSLProvider sslProvider, TimerManager timerManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleancloseConnections(boolean onlyIdle) Closes all connections or those that are currently idle.voidintbooleanisClosed()voidrun()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
HttpEndpointListener
public HttpEndpointListener(IpPort p, HttpTransport transport, SSLProvider sslProvider, @Nullable TimerManager timerManager) throws IOException - Throws:
IOException
-
-
Method Details
-
run
public void run() -
closePort
- Throws:
IOException
-
closeConnections
Closes all connections or those that are currently idle.- Parameters:
onlyIdle- whether to close only idle connections- Returns:
- true, if there are no more open connections
- Throws:
IOException
-
getNumberOfOpenConnections
public int getNumberOfOpenConnections() -
getTransport
-
isClosed
public boolean isClosed() -
getSslProvider
-