# Uses of Class
com.tick42.glue.core.interop.Instance

Packages that use Instance
Package | Description
--- | ---
com.tick42.glue.core.interop | Interop API .
com.tick42.glue.core.interop.discovery |
com.tick42.glue.core.interop.event |
com.tick42.glue.core.interop.invoke |
com.tick42.glue.core.interop.stream.publish |
com.tick42.glue.desktop.applications | The application management API for Glue Desktop.

- ## Uses of Instance in com.tick42.glue.core.interop

  Methods in com.tick42.glue.core.interop that return Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `Instance` | Instance.Builder.`build()` |
  `Instance` | ServerMethod.`getInstance()` |
  `Instance` | Interop.`instance()` |

  Methods in com.tick42.glue.core.interop that return types with arguments of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `default Collection<Instance>` | Interop.`getServers()` |
  `Collection<Instance>` | Interop.`getServers​(Predicate<Instance> instance)` |

  Methods in com.tick42.glue.core.interop with parameters of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `static ServerMethod.Builder` | ServerMethod.`builder​(Instance instance, String name)` |
  `default void` | Interop.InstanceSubscriber.`onAdded​(Instance server)` |
  `default void` | Interop.InstanceSubscriber.`onRemoved​(Instance server)` |

  Method parameters in com.tick42.glue.core.interop with type arguments of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `Collection<Instance>` | Interop.`getServers​(Predicate<Instance> instance)` |

- ## Uses of Instance in com.tick42.glue.core.interop.discovery

  Methods in com.tick42.glue.core.interop.discovery that return types with arguments of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `Predicate<Instance>` | InstanceMatch.Builder.`asMatchPredicate()` |

  Methods in com.tick42.glue.core.interop.discovery with parameters of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `boolean` | InstanceMatch.`matches​(Instance instance)` |
  `MethodQuery<R>` | MethodQuery.`server​(Instance instance)` |

  Method parameters in com.tick42.glue.core.interop.discovery with type arguments of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `MethodQuery<R>` | MethodQuery.`server​(Predicate<Instance> predicate)` |

- ## Uses of Instance in com.tick42.glue.core.interop.event

  Methods in com.tick42.glue.core.interop.event that return Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `Instance` | ServerEvent.`getServer()` |

  Constructors in com.tick42.glue.core.interop.event with parameters of type Instance
  Constructor | Description
  --- | ---
  `ServerAddedEvent​(Instance server)` |
  `ServerEvent​(Instance server)` |
  `ServerRemovedEvent​(Instance server)` |

- ## Uses of Instance in com.tick42.glue.core.interop.invoke

  Methods in com.tick42.glue.core.interop.invoke with parameters of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `CompletionStage<R>` | MethodInvocationHandler.`handle​(T arg, Instance caller)` |
  `R` | SynchronousMethodInvocationHandler.`handle​(T arg, Instance caller)` |

- ## Uses of Instance in com.tick42.glue.core.interop.stream.publish

  Methods in com.tick42.glue.core.interop.stream.publish that return Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `Instance` | StreamConsumer.`getCaller()` |
  `Instance` | StreamSubscriptionRejectedException.`getCaller()` |
  `Instance` | StreamSubscriptionRequest.`getCaller()` |

  Method parameters in com.tick42.glue.core.interop.stream.publish with type arguments of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `static <T> StreamSubscriptionRequestHandler<T>` | StreamSubscriptionRequestHandler.`accept​(BiFunction<T,​Instance,​String> streamFunction)` | Returns a `StreamSubscriptionRequestHandler` that accepts all subscription request and subscribes them to a stream with id returned by the provided `streamFunction.apply(arg, caller)`.

  Constructors in com.tick42.glue.core.interop.stream.publish with parameters of type Instance
  Constructor | Description
  --- | ---
  `StreamSubscriptionRejectedException​(String reason, Instance caller)` |

- ## Uses of Instance in com.tick42.glue.desktop.applications

  Methods in com.tick42.glue.desktop.applications that return types with arguments of type Instance
  Modifier and Type | Method | Description
  --- | --- | ---
  `Optional<Instance>` | ApplicationInstance.`getInstance()` | Returns an `Optional` that contains the interop `Instance` for this application instance.