Class GryoPool.Builder

  • Enclosing class:
    GryoPool

    public static class GryoPool.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • ioRegistries

        public GryoPool.Builder ioRegistries​(List<Object> ioRegistryClassNames)
        The IoRegistry class names to use for the GryoPool
        Parameters:
        ioRegistryClassNames - a list of class names
        Returns:
        the update builder
      • ioRegistry

        public GryoPool.Builder ioRegistry​(Object ioRegistryClassName)
        The IoRegistry class name to use for the GryoPool
        Parameters:
        ioRegistryClassName - a class name
        Returns:
        the update builder
      • poolSize

        public GryoPool.Builder poolSize​(int poolSize)
        The size of the GryoPool. The size can not be changed once created.
        Parameters:
        poolSize - the pool size
        Returns:
        the updated builder
      • type

        public GryoPool.Builder type​(GryoPool.Type type)
        The type of GryoPool to support -- see Type
        Parameters:
        type - the pool type
        Returns:
        the updated builder
      • initializeMapper

        public GryoPool.Builder initializeMapper​(Consumer<GryoMapper.Builder> gryoMapperConsumer)
        A consumer to update the GryoMapper.Builder once constructed.
        Parameters:
        gryoMapperConsumer - the GryoMapper.Builder consumer
        Returns:
        the updated builder
      • create

        public GryoPool create()
        Create the GryoPool from this builder.
        Returns:
        the new pool