Package org.opentcs.access.rmi.services

# Class RemoteQueryServiceProxy

java.lang.Object
org.opentcs.access.rmi.services.RemoteQueryServiceProxy

All Implemented Interfaces:
  `QueryService`

    public class RemoteQueryServiceProxy
    extends java.lang.Object
    implements QueryService

The default implementation of the query service. Delegates method invocations to the corresponding remote service.

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `RemoteQueryServiceProxy()` |

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `<T> T` | `query​(Query<T> query)` | Executes a query with the kernel and delivers the result.
  `org.opentcs.access.rmi.services.AbstractRemoteServiceProxy<R>` | `setServiceListener​(ServiceListener serviceListener)` | Sets the listener that is interested in updates of this service.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RemoteQueryServiceProxy

    public RemoteQueryServiceProxy()

- ## Method Details

  - ### query

    public <T> T query​(Query<T> query)
    Description copied from interface: `QueryService`
    Executes a query with the kernel and delivers the result.
    Specified by:
      `query` in interface `QueryService`
    Type Parameters:
      `T` - The query/result type.
    Parameters:
      `query` - The query/parameter object.
    Returns:
      The query result.

  - ### setServiceListener

    public org.opentcs.access.rmi.services.AbstractRemoteServiceProxy<R> setServiceListener​(ServiceListener serviceListener)
    Sets the listener that is interested in updates of this service.
    Parameters:
      `serviceListener` - The service listener.
    Returns:
      This remote service proxy.