public interface OpenKit
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
Session |
createSession()
Creates a Session instance which can then be used to create Actions.
|
Session |
createSession(java.lang.String clientIPAddress)
Creates a Session instance which can then be used to create Actions.
|
boolean |
isInitialized()
Returns whether OpenKit is initialized or not.
|
void |
shutdown()
Shuts down OpenKit, ending all open Sessions and waiting for them to be sent.
|
boolean |
waitForInitCompletion()
Waits until OpenKit is fully initialized.
|
boolean |
waitForInitCompletion(long timeoutMillis)
Waits until OpenKit is fully initialized or the given timeout expired.
|
boolean waitForInitCompletion()
The calling thread is blocked until OpenKit is fully initialized or until OpenKit is shut down using the
shutdown() method.
Be aware, if AbstractOpenKitBuilder is wrongly configured, for example when creating an
instance with an incorrect endpoint URL, then this method might hang indefinitely, unless shutdown() is called.
true when OpenKit is fully initialized, false when a shutdown request was made.boolean waitForInitCompletion(long timeoutMillis)
The calling thread is blocked until OpenKit is fully initialized or until OpenKit is shut down using the
shutdown() method or the timeout expired..
Be aware, if AbstractOpenKitBuilder is wrongly configured, for example when creating an
instance with an incorrect endpoint URL, then this method might hang indefinitely, unless shutdown() is called or timeout expires.
timeoutMillis - The maximum number of milliseconds to wait for initialization being completed.true when OpenKit is fully initialized, false when a shutdown request was made or timeoutMillis expired.boolean isInitialized()
true if OpenKit is fully initialized, false if OpenKit still performs initialization.Session createSession(java.lang.String clientIPAddress)
clientIPAddress - client IP address where this Session is coming fromSession createSession()
This is similar to the method createSession(String), except that
the client's IP address is determined on the server side.
void shutdown()