Package biopb.image

Class OpsClient

java.lang.Object
biopb.image.OpsClient
All Implemented Interfaces:
AutoCloseable

public final class OpsClient extends Object implements AutoCloseable
A client of an algorithm server: the Ops protocol over gRPC.

The Java twin of Python's biopb.image.OpsClient. Use connect(String) to make one. A call has no deadline: the inactivity timeout bounds the silence between events instead, and leaving a call (an error, a sink that throws, a timeout) cancels it on the server.

  • Constructor Details

    • OpsClient

      public OpsClient(String url, String token, Duration inactivityTimeout)
      A client of the server at url, a grpc:// or grpcs:// address.
      Parameters:
      token - bearer token, or null for none
      inactivityTimeout - longest silence between events before a call is given up on, or null for none
      Throws:
      IllegalArgumentException - the URL has no host or another scheme
    • OpsClient

      public OpsClient(io.grpc.ManagedChannel channel, String token, Duration inactivityTimeout)
      A client over a channel the caller built (to set message size limits, credentials or a proxy). The client owns it: close() shuts it down.
  • Method Details