Interface RPCProvider.Builder<B extends RPCProvider.Builder<B>>

Type Parameters:
B - the subtype of the builder being used, for chaining.
All Known Subinterfaces:
RPCHandler.Builder<T>, RPCImplementationBuilder<T>, RPCSender.Builder
Enclosing interface:
RPCProvider

public static interface RPCProvider.Builder<B extends RPCProvider.Builder<B>>
A base builder that can be used for everything that implements RPC provider.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Sets the data buf factory to use for everything that is related with data serialization in the final rpc provider.
    Sets the object mapper for serialization of objects during RPC execution related to the final rpc provider.
  • Method Details

    • objectMapper

      @NonNull @Contract("_ -> this") B objectMapper(@NonNull @NonNull ObjectMapper objectMapper)
      Sets the object mapper for serialization of objects during RPC execution related to the final rpc provider.
      Parameters:
      objectMapper - the object mapper to use.
      Returns:
      this builder, for chaining.
      Throws:
      NullPointerException - if the given mapper is null.
    • dataBufFactory

      @NonNull @Contract("_ -> this") B dataBufFactory(@NonNull @NonNull DataBufFactory dataBufFactory)
      Sets the data buf factory to use for everything that is related with data serialization in the final rpc provider.
      Parameters:
      dataBufFactory - the data buf factory to use.
      Returns:
      this builder, for chaining.
      Throws:
      NullPointerException - if the given factory is null.