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

Packages that use ServerMethod
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.receive |

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

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

  Methods in com.tick42.glue.core.interop that return types with arguments of type ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `default Collection<ServerMethod>` | Interop.`getMethods()` |
  `default Collection<ServerMethod>` | Interop.`getMethods​(Predicate<ServerMethod> method)` |
  `CompletionStage<Collection<ServerMethod>>` | Interop.`methods​(Predicate<ServerMethod> instance, Duration timeout)` |

  Methods in com.tick42.glue.core.interop with parameters of type ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `default void` | Interop.ServerMethodSubscriber.`onAdded​(ServerMethod method)` |
  `default void` | Interop.ServerMethodSubscriber.`onRemoved​(ServerMethod method)` |
  `default CompletionStage<StreamPublisher<Map<String,​Object>>>` | Interop.`stream​(ServerMethod method, Map<String,​Object> arg)` |
  `<T,​ R> CompletionStage<StreamPublisher<R>>` | Interop.`stream​(ServerMethod method, T arg, ReifiedType<R> dataType)` | Invokes a streaming method with specified arg and returns a future for a `StreamPublisher`.

  Method parameters in com.tick42.glue.core.interop with type arguments of type ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `default Collection<ServerMethod>` | Interop.`getMethods​(Predicate<ServerMethod> method)` |
  `<T,​ R> CompletionStage<MethodInvocationResult<R>>` | Interop.`invoke​(Collection<ServerMethod> method, T arg, InvocationOptions options, ReifiedType<R> returnType)` |
  `CompletionStage<Collection<ServerMethod>>` | Interop.`methods​(Predicate<ServerMethod> instance, Duration timeout)` |

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

  Methods in com.tick42.glue.core.interop.discovery with parameters of type ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `boolean` | MethodMatch.`matches​(ServerMethod method)` |

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

  Constructors in com.tick42.glue.core.interop.event with parameters of type ServerMethod
  Constructor | Description
  --- | ---
  `ServerMethodAddedEvent​(ServerMethod method)` |
  `ServerMethodRemovedEvent​(ServerMethod method)` |

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

  Methods in com.tick42.glue.core.interop.invoke that return ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `ServerMethod` | MethodInvocationResponse.`getMethod()` |

- ## Uses of ServerMethod in com.tick42.glue.core.interop.stream.receive

  Methods in com.tick42.glue.core.interop.stream.receive that return ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `ServerMethod` | StreamSubscription.`getMethod()` |

  Methods in com.tick42.glue.core.interop.stream.receive with parameters of type ServerMethod
  Modifier and Type | Method | Description
  --- | --- | ---
  `default void` | StreamSubscriber.`onData​(ServerMethod method, StreamData<T> data)` | Method to be invoked when data is received on the stream.
  `default void` | StreamSubscriber.`onData​(ServerMethod method, T data)` |
  `default void` | StreamSubscriber.`onFailed​(ServerMethod method, String reason)` |