BackForwardCacheSettings.Builder
public final class BackForwardCacheSettings.Builder
Builder for BackForwardCacheSettings.
Summary
Public constructors |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull BackForwardCacheSettings |
build()Builds the |
@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
Public methods
build
Added in 1.15.0-beta01
public @NonNull BackForwardCacheSettings build()
Builds the BackForwardCacheSettings object.
| Returns | |
|---|---|
@NonNull BackForwardCacheSettings |
The |
setMaxPagesInCache
Added in 1.15.0-beta01
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
Added in 1.15.0-beta01
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. |