Class EmbeddedMetadata.Builder

    • Field Detail

      • lifespan

        protected Long lifespan
      • lifespanUnit

        protected TimeUnit lifespanUnit
      • maxIdle

        protected Long maxIdle
      • maxIdleUnit

        protected TimeUnit maxIdleUnit
      • version

        protected org.infinispan.container.versioning.EntryVersion version
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • lifespan

        public Metadata.Builder lifespan​(long time,
                                         TimeUnit unit)
        Description copied from interface: Metadata.Builder
        Set lifespan time with a given time unit.
        Specified by:
        lifespan in interface Metadata.Builder
        Parameters:
        time - of lifespan
        unit - unit of time for lifespan time
        Returns:
        a builder instance with the lifespan time applied
      • lifespan

        public Metadata.Builder lifespan​(long time)
        Description copied from interface: Metadata.Builder
        Set lifespan time assuming that the time unit is milliseconds.
        Specified by:
        lifespan in interface Metadata.Builder
        Parameters:
        time - of lifespan, in milliseconds
        Returns:
        a builder instance with the lifespan time applied
      • maxIdle

        public Metadata.Builder maxIdle​(long time,
                                        TimeUnit unit)
        Description copied from interface: Metadata.Builder
        Set max idle time with a given time unit.
        Specified by:
        maxIdle in interface Metadata.Builder
        Parameters:
        time - of max idle
        unit - of max idle time
        Returns:
        a builder instance with the max idle time applied
      • maxIdle

        public Metadata.Builder maxIdle​(long time)
        Description copied from interface: Metadata.Builder
        Set max idle time assuming that the time unit is milliseconds.
        Specified by:
        maxIdle in interface Metadata.Builder
        Parameters:
        time - of max idle, in milliseconds
        Returns:
        a builder instance with the max idle time applied
      • version

        public Metadata.Builder version​(org.infinispan.container.versioning.EntryVersion version)
        Description copied from interface: Metadata.Builder
        Set version.
        Specified by:
        version in interface Metadata.Builder
        Parameters:
        version - of the metadata
        Returns:
        a builder instance with the version applied
      • hasLifespan

        protected boolean hasLifespan()
      • hasMaxIdle

        protected boolean hasMaxIdle()
      • merge

        public Metadata.Builder merge​(Metadata metadata)
        Description copied from interface: Metadata.Builder
        Merges the given metadata information into the given builder.
        Specified by:
        merge in interface Metadata.Builder
        Parameters:
        metadata - to merge into this builder
        Returns:
        a builder instance with the metadata applied