Class Storage
- java.lang.Object
-
- com.oracle.coherence.concurrent.executor.options.Storage
-
- All Implemented Interfaces:
TaskExecutorService.Registration.Option,com.tangosol.io.ExternalizableLite,com.tangosol.io.pof.PortableObject,Serializable
public class Storage extends Object implements TaskExecutorService.Registration.Option, com.tangosol.io.pof.PortableObject
AnTaskExecutorService.Registration.Optionto specify whether anExecutoris running on a storage enabled Coherence server.See
DistributedCacheService.isLocalStorageEnabled()- Since:
- 21.12
- Author:
- phf
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static StorageDISABLEDRead-onlyStorageset todisabled.protected static StorageENABLEDRead-onlyStorageset toenabled.protected booleanm_fStorageEnabledWhether the Coherence server in which theExecutoris running is storageenabled.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Storagedisabled()Return aStoragedisabledTaskExecutorService.Registration.Option.static Storageenabled()Return aStorageenabledTaskExecutorService.Registration.Option.static Storageenabled(boolean fStorageEnabled)booleanequals(Object obj)inthashCode()booleanisEnabled()Return whether the Coherence server in which theExecutoris running is storage enabled.voidreadExternal(com.tangosol.io.pof.PofReader in)voidreadExternal(DataInput in)StringtoString()voidwriteExternal(com.tangosol.io.pof.PofWriter out)voidwriteExternal(DataOutput out)
-
-
-
Field Detail
-
m_fStorageEnabled
protected boolean m_fStorageEnabled
Whether the Coherence server in which theExecutoris running is storageenabled.
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Return whether the Coherence server in which theExecutoris running is storage enabled.- Returns:
- whether the Coherence server in which the
Executoris running is storage enabled
-
readExternal
public void readExternal(DataInput in) throws IOException
- Specified by:
readExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Specified by:
writeExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
enabled
public static Storage enabled(boolean fStorageEnabled)
- Parameters:
fStorageEnabled- whether the Option represents enabled (true), or disabled (false)- Returns:
- a
StorageTaskExecutorService.Registration.Option
-
enabled
public static Storage enabled()
Return aStorageenabledTaskExecutorService.Registration.Option.- Returns:
- a
StorageTaskExecutorService.Registration.Option
-
disabled
public static Storage disabled()
Return aStoragedisabledTaskExecutorService.Registration.Option.- Returns:
- a
StorageTaskExecutorService.Registration.Option
-
-