Interface ServerTransport

All Superinterfaces:
AutoCloseable, ServerOutput
All Known Implementing Classes:
AtomixServerTransport

public interface ServerTransport extends ServerOutput, AutoCloseable
  • Method Details

    • subscribe

      ActorFuture<Void> subscribe(int partitionId, RequestType requestType, RequestHandler requestHandler)
      Subscribes to the given partition and call's the given handler on each new request of the given type.
      Parameters:
      partitionId - the partition, for which should be subscribed
      requestType - the type of request that should be handled
      requestHandler - the handler which should be called.
    • unsubscribe

      ActorFuture<Void> unsubscribe(int partitionId, RequestType requestType)
      Unsubscribe from the given partition, the registered handler will no longer be called on new requests.
      Parameters:
      partitionId - the partition, from which we should unsubscribe
      requestType -