public interface InteropClient
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
addContextListener(ContextListener contextListener)
Adds a context listener for incoming context.
|
CompletionStage<Void> |
addContextListener(String contextType,
ContextListener contextListener)
Adds a context listener for incoming context of specified context type.
|
CompletionStage<Void> |
fireIntent(Intent intent)
Sends an intent to the Interop Broker to resolve.
|
CompletionStage<ClientIdentity[]> |
getAllClientsInContextGroup(String contextGroupId)
Gets all clients for a context group.
|
CompletionStage<ContextGroupInfo[]> |
getContextGroups()
Gets the Interop-Broker-defined context groups available for an entity to join.
|
CompletionStage<ContextGroupInfo> |
getInfoForContextGroup(String contextGroupId)
Gets display info for a context group.
|
CompletionStage<Void> |
joinContextGroup(String contextGroupId)
Joins this InteropClient to the context group.
|
CompletionStage<Void> |
joinContextGroup(String contextGroupId,
Identity target)
Joins specified InteropClient to the context group.
|
CompletionStage<Void> |
registerIntentListener(String intentName,
IntentListener intentListener)
Register an intent listener for incoming intent.
|
CompletionStage<Void> |
removeContextListener(ContextListener contextListener)
Removes the context listener.
|
CompletionStage<Void> |
removeContextListener(String contextType,
ContextListener contextListener)
Remove the context listener of specified context type.
|
CompletionStage<Void> |
removeFromContextGroup()
Removes this InteropClient from the context group it currently joined.
|
CompletionStage<Void> |
removeFromContextGroup(Identity target)
Removes specified InteropClient from the context group it currently joined.
|
CompletionStage<Void> |
setContext(Context context)
Sets a context for the context group of the current entity.
|
CompletionStage<Void> setContext(Context context)
context - New context to set.CompletionStage<Void> addContextListener(ContextListener contextListener)
contextListener - The listener for incoming context.CompletionStage<Void> addContextListener(String contextType, ContextListener contextListener)
contextType - The context type to listen to.contextListener - The listener for incoming context.CompletionStage<Void> removeContextListener(ContextListener contextListener)
contextListener - The listener to be removed.CompletionStage<Void> removeContextListener(String contextType, ContextListener contextListener)
contextType - The context type that the listener is listened to.contextListener - The listener to be removed.CompletionStage<ContextGroupInfo[]> getContextGroups()
CompletionStage<Void> joinContextGroup(String contextGroupId)
contextGroupId - The id of context group.CompletionStage<Void> joinContextGroup(String contextGroupId, Identity target)
contextGroupId - The id of context group.target - The identity of the target InteropClient.CompletionStage<Void> removeFromContextGroup()
CompletionStage<Void> removeFromContextGroup(Identity target)
target - The identity of the target InteropClient.CompletionStage<ClientIdentity[]> getAllClientsInContextGroup(String contextGroupId)
contextGroupId - The id of context group.CompletionStage<ContextGroupInfo> getInfoForContextGroup(String contextGroupId)
contextGroupId - The id of context group.CompletionStage<Void> fireIntent(Intent intent)
intent - New intent to send.CompletionStage<Void> registerIntentListener(String intentName, IntentListener intentListener)
intentName - name of the intentintentListener - The listener for incoming intent.Copyright © 2022. All rights reserved.