Show / Hide Table of Contents

Interface IInvocable

An IInvocable object is a portable object that can be invoked on the remote cluster member to which the client is connected and can optionally register a return value for the invocation.

Inherited Members
IPortableObject.ReadExternal(IPofReader)
IPortableObject.WriteExternal(IPofWriter)
Namespace: Tangosol.Net
Assembly: Coherence.dll
Syntax
public interface IInvocable : IPortableObject
Remarks

When an IInvocable object is received for execution, the order of execution is:

  • The IInvocable object is deserialized by the IInvocationService.
  • The IInvocationService provides a reference to itself to the IInvocable object by calling the init method.
  • The IInvocationService invokes the IInvocable object by calling the run method.
  • If the IInvocationService is responsible for returning a value from the invocation, it obtains the value from the Result property.

Properties

Result

The result from the invocation of this object.

Declaration
object Result { get; }
Property Value
Type Description
object

The object representing result from the invocation.

Remarks

This property value is read after the Run() method returns.

Methods

Init(IInvocationService)

Called by the IInvocationService exactly once on this IInvocable object as part of its initialization.

Declaration
void Init(IInvocationService service)
Parameters
Type Name Description
IInvocationService service

The containing InvocationService.

Remarks

Note: implementations of the IInvocable interface that store the service reference must do so only in a transient field.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.