public interface TransportProviderI
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
$0 |
| Modifier and Type | Method and Description |
|---|---|
void |
bumpLastActivity()
Resets the last-activity timestamp to the current system time.
|
int |
getRoundtrips()
Returns the total client-server roundtrips since initialization.
|
java.lang.Long |
getSessionId(boolean blockUntilAvailable)
Returns the Id of the current server-connection.
|
TransportI |
getTransport(java.lang.String reason,
boolean blockUntilAvailable)
Returns a usable TransportI for client-server communication.
|
boolean |
isAboutToStop()
Returns true, if this TransportProviderI will stop soon, false otherwise.
|
boolean |
isActive(int waitSecs)
Blocks for up to
waitSecs seconds to determine whether transport activity occurred. |
boolean |
isStopped()
Returns true, if this TransportProviderI is stopped, false otherwise.
|
boolean |
performMaintenance()
Forces a performance run on the managed TransportI-s.
|
void |
releaseTransport(TransportI t,
java.lang.Exception e)
Releases the passed TransportI again.
|
void |
startWorker()
Starts the worker thread of this TransportProviderI, which performs maintenance on the managed TransportI-s.
|
void |
stop()
Stops this TransportProviderI and terminates all TransportI-s.
|
static final java.lang.String $0
int getRoundtrips()
boolean isActive(int waitSecs)
waitSecs seconds to determine whether transport activity occurred.waitSecs - maximum duration to block, in secondstrue if activity occurred during the window; false otherwisevoid bumpLastActivity()
java.lang.Long getSessionId(boolean blockUntilAvailable)
TransportI getTransport(java.lang.String reason, boolean blockUntilAvailable) throws ServerConnectionException
ServerConnectionExceptionvoid releaseTransport(TransportI t, java.lang.Exception e) throws ServerConnectionException, java.lang.IllegalStateException
ServerConnectionExceptionjava.lang.IllegalStateExceptionvoid startWorker()
boolean performMaintenance()
void stop()
boolean isAboutToStop()
boolean isStopped()
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.