Package io.freefair.spring.okhttp
Class OkHttpProperties.CacheProperties
- java.lang.Object
-
- io.freefair.spring.okhttp.OkHttpProperties.CacheProperties
-
- Enclosing class:
- OkHttpProperties
public static class OkHttpProperties.CacheProperties extends java.lang.Object- See Also:
Cache
-
-
Constructor Summary
Constructors Constructor Description CacheProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.io.FilegetDirectory()The path of the directory where the cache should be stored.org.springframework.util.unit.DataSizegetMaxSize()The maximum number of bytes this cache should use to store.inthashCode()booleanisEnabled()voidsetDirectory(java.io.File directory)The path of the directory where the cache should be stored.voidsetEnabled(boolean enabled)voidsetMaxSize(org.springframework.util.unit.DataSize maxSize)The maximum number of bytes this cache should use to store.java.lang.StringtoString()
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
getMaxSize
public org.springframework.util.unit.DataSize getMaxSize()
The maximum number of bytes this cache should use to store.
-
getDirectory
public java.io.File getDirectory()
The path of the directory where the cache should be stored.
-
setEnabled
public void setEnabled(boolean enabled)
-
setMaxSize
public void setMaxSize(org.springframework.util.unit.DataSize maxSize)
The maximum number of bytes this cache should use to store.
-
setDirectory
public void setDirectory(java.io.File directory)
The path of the directory where the cache should be stored.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-