BackForwardCacheSettings.Builder


public final class BackForwardCacheSettings.Builder


Builder for BackForwardCacheSettings.

Summary

Public constructors

Public methods

@NonNull BackForwardCacheSettings

Builds the BackForwardCacheSettings object.

@NonNull BackForwardCacheSettings.Builder
setMaxPagesInCache(int maxPagesInCache)

Sets the maximum number of pages that can be stored in the back-forward cache.

@NonNull BackForwardCacheSettings.Builder
setTimeoutSeconds(long timeoutInSeconds)

Sets the timeout for pages in the back-forward cache.

Public constructors

Builder

Added in 1.15.0-alpha03
public Builder()

Public methods

setMaxPagesInCache

public @NonNull BackForwardCacheSettings.Builder setMaxPagesInCache(int maxPagesInCache)

Sets the maximum number of pages that can be stored in the back-forward cache.

Parameters
int maxPagesInCache

The maximum number of pages.

Returns
@NonNull BackForwardCacheSettings.Builder

This builder.

setTimeoutSeconds

public @NonNull BackForwardCacheSettings.Builder setTimeoutSeconds(long timeoutInSeconds)

Sets the timeout for pages in the back-forward cache.

Parameters
long timeoutInSeconds

The timeout in seconds.

Returns
@NonNull BackForwardCacheSettings.Builder

This builder.