Class PreloadRequest
PreloadRequest is a simple IEntryProcessor that gets an Value property.
Inherited Members
Namespace: Tangosol.Util.Processor
Assembly: Coherence.dll
Syntax
public class PreloadRequest : AbstractProcessor, IEntryProcessor, IPortableObject
Remarks
No results are reported back to the caller.
The PreloadRequest process provides a means to "pre-load" an entry or a collection of entries into the cache using the cache's loader without incurring the cost of sending the value(s) over the network. If the corresponding entry (or entries) already exists in the cache, or if the cache does not have a loader, then invoking this IEntryProcessor has no effect.
Constructors
PreloadRequest()
Default constructor.
Declaration
public PreloadRequest()
Fields
Instance
An instance of the PreloadRequest processor.
Declaration
public static readonly PreloadRequest Instance
Field Value
Type | Description |
---|---|
PreloadRequest |
Methods
Equals(object)
Compare the PreloadRequest with another object to determine equality.
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | The object to compare with. |
Returns
Type | Description |
---|---|
bool | true iff this PreloadRequest and the passed object are equivalent PreloadRequest. |
Overrides
GetHashCode()
Determine a hash value for the PreloadRequest object according to the general GetHashCode() contract.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer hash value for this PreloadRequest object. |
Overrides
Process(IInvocableCacheEntry)
Process an IInvocableCacheEntry.
Declaration
public override object Process(IInvocableCacheEntry entry)
Parameters
Type | Name | Description |
---|---|---|
IInvocableCacheEntry | entry | The IInvocableCacheEntry to process. |
Returns
Type | Description |
---|---|
object | The result of the processing, if any. |
Overrides
ProcessAll(ICollection)
Process a collection of IInvocableCacheEntry objects.
Declaration
public override IDictionary ProcessAll(ICollection entries)
Parameters
Type | Name | Description |
---|---|---|
ICollection | entries | A read-only collection of IInvocableCacheEntry objects to process. |
Returns
Type | Description |
---|---|
IDictionary | An empty, immutable dictionary. |
Overrides
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public virtual void ReadExternal(IPofReader reader)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader from which to read the object's state. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
ToString()
Return a human-readable description for this PreloadRequest.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A String description of the PreloadRequest. |
Overrides
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public virtual void WriteExternal(IPofWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriter to which to write the object's state. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |