public class InteropClientImpl extends Object implements InteropClient
| Constructor and Description |
|---|
InteropClientImpl(DesktopConnection conn,
String brokerName) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Void> |
addContextListener(ContextListener contextListener)
Adds a context listener for incoming context.
|
CompletionStage<Void> |
addContextListener(String contextType,
ContextListener listener)
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 listener)
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.
|
public InteropClientImpl(DesktopConnection conn, String brokerName)
public CompletionStage<Void> setContext(Context context)
InteropClientsetContext in interface InteropClientcontext - New context to set.public CompletionStage<Void> addContextListener(ContextListener contextListener)
InteropClientaddContextListener in interface InteropClientcontextListener - The listener for incoming context.public CompletionStage<Void> addContextListener(String contextType, ContextListener listener)
InteropClientaddContextListener in interface InteropClientcontextType - The context type to listen to.listener - The listener for incoming context.public CompletionStage<Void> removeContextListener(ContextListener contextListener)
InteropClientremoveContextListener in interface InteropClientcontextListener - The listener to be removed.public CompletionStage<Void> removeContextListener(String contextType, ContextListener listener)
InteropClientremoveContextListener in interface InteropClientcontextType - The context type that the listener is listened to.listener - The listener to be removed.public CompletionStage<ContextGroupInfo[]> getContextGroups()
InteropClientgetContextGroups in interface InteropClientpublic CompletionStage<Void> joinContextGroup(String contextGroupId)
InteropClientjoinContextGroup in interface InteropClientcontextGroupId - The id of context group.public CompletionStage<Void> joinContextGroup(String contextGroupId, Identity target)
InteropClientjoinContextGroup in interface InteropClientcontextGroupId - The id of context group.target - The identity of the target InteropClient.public CompletionStage<Void> removeFromContextGroup()
InteropClientremoveFromContextGroup in interface InteropClientpublic CompletionStage<Void> removeFromContextGroup(Identity target)
InteropClientremoveFromContextGroup in interface InteropClienttarget - The identity of the target InteropClient.public CompletionStage<ClientIdentity[]> getAllClientsInContextGroup(String contextGroupId)
InteropClientgetAllClientsInContextGroup in interface InteropClientcontextGroupId - The id of context group.public CompletionStage<ContextGroupInfo> getInfoForContextGroup(String contextGroupId)
InteropClientgetInfoForContextGroup in interface InteropClientcontextGroupId - The id of context group.public CompletionStage<Void> fireIntent(Intent intent)
InteropClientfireIntent in interface InteropClientintent - New intent to send.public CompletionStage<Void> registerIntentListener(String intentName, IntentListener intentListener)
InteropClientregisterIntentListener in interface InteropClientintentName - name of the intentintentListener - The listener for incoming intent.Copyright © 2022. All rights reserved.