public interface MetadataControlListener
MetadataProvider
Modifier and Type | Method and Description |
---|---|
void |
failure(java.lang.Throwable e)
Called by a Metadata Adapter to notify Lightstreamer Kernel of the
occurrence of a severe problem that can compromise future operation
of the Metadata Adapter.
|
java.util.concurrent.CompletionStage<java.lang.Void> |
forceSessionTermination(java.lang.String sessionID)
Enforces the termination of the specified session.
|
java.util.concurrent.CompletionStage<java.lang.Void> |
forceSessionTermination(java.lang.String sessionID,
int causeCode,
java.lang.String causeMessage)
Enforces the termination of the specified session.
|
java.util.concurrent.CompletionStage<java.lang.Void> forceSessionTermination(java.lang.String sessionID)
MetadataProvider.notifyNewSession(java.lang.String, java.lang.String, java.util.Map)
related with the
supplied session ID is pointless; however, the request will be
held, then carried out after the underlying session initiation
has finished. If the session termination occurs while the client
creation request is still in place, the request will fail.sessionID
- The ID of the session to be closed.java.util.concurrent.CompletionStage<java.lang.Void> forceSessionTermination(java.lang.String sessionID, int causeCode, java.lang.String causeMessage)
MetadataProvider.notifyNewSession(java.lang.String, java.lang.String, java.util.Map)
related with the
supplied session ID is pointless; however, the request will be
held, then carried out after the underlying session initiation
has finished. If the session termination occurs while the client
creation request is still in place, the request will fail.sessionID
- The ID of the session to be closed.causeCode
- Error code that can be used to distinguish the
cause of the closure. It must be a negative integer, or zero to mean an
unspecified problem.causeMessage
- Error message to be sent to the client, or null.void failure(java.lang.Throwable e)
e
- any java.lang.Throwable object, with the description of
the problem.