Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.coherence.servlet
Class AbstractHttpSessionCollection.ExitObserver

    java.lang.Object
      com.tangosol.coherence.servlet.AbstractHttpSessionCollection.ExitObserver

All Implemented Interfaces:
  InvocationObserver

Enclosing class:
  AbstractHttpSessionCollection

    public static class AbstractHttpSessionCollection.ExitObserver

extends java.lang.Object
implements InvocationObserver

This InvocationObserver waits for an ExitAgent to report back that some server in the cluster did have the specified session id locked.

Constructor Summary
`AbstractHttpSessionCollection.ExitObserver()`

Method Summary
`void` | `invocationCompleted()` This method is called by the `InvocationService` to inform the InvocationObserver that all service members have either finished the `Invocable` object execution or are not (or no longer) running the InvocationService.
`boolean` | `isDone()` Determine if an agent has reported that the session was unlocked.
`void` | `memberCompleted(Member member, java.lang.Object oResult)` This method is called by the `InvocationService` to inform the InvocationObserver that a member has finished running the `Invocable` object; the result of the invocation, if any, is provided to the InvocationObserver.
`void` | `memberFailed(Member member, java.lang.Throwable eFailure)` This method is called by the `InvocationService` to inform the InvocationObserver that a member has thrown an exception while running the `Invocable` object.
`void` | `memberLeft(Member member)` This method is called by the `InvocationService` to inform the InvocationObserver that a member that the `Invocable` object was intended for execution upon has left the service (or the cluster).
`protected void` | `setDone(boolean fDone)` Toggle the successful completion (session was unlocked) of any one agent.

Constructor Detail

### AbstractHttpSessionCollection.ExitObserver

    public AbstractHttpSessionCollection.ExitObserver()

Method Detail

### memberCompleted

    public void memberCompleted(Member member,
                                java.lang.Object oResult)

  This method is called by the `InvocationService` to inform the InvocationObserver that a member has finished running the `Invocable` object; the result of the invocation, if any, is provided to the InvocationObserver. The result will be null if no result is registered by the Invocable object, or if it explicitly registers a result whose value is null.

  Specified by:
    `memberCompleted` in interface `InvocationObserver`
  Parameters:
    `member` - cluster Member that has finished the execution of the Invocable object
    `oResult` - the result, if any, of the invocation

### memberFailed

    public void memberFailed(Member member,
                             java.lang.Throwable eFailure)

  This method is called by the `InvocationService` to inform the InvocationObserver that a member has thrown an exception while running the `Invocable` object.

  Specified by:
    `memberFailed` in interface `InvocationObserver`
  Parameters:
    `member` - cluster Member that encountered an exception while executing the Invocable object
    `eFailure` - the Throwable object that was encountered

### memberLeft

    public void memberLeft(Member member)

  This method is called by the `InvocationService` to inform the InvocationObserver that a member that the `Invocable` object was intended for execution upon has left the service (or the cluster).

  It cannot be determined whether the member never received the Invocable object, received and began execution of it and left before finishing, or even completed execution of it without managing to report a result.

  Specified by:
    `memberLeft` in interface `InvocationObserver`
  Parameters:
    `member` - cluster Member that left the service before reporting the completion of the execution of the Invocable object

### invocationCompleted

    public void invocationCompleted()

  This method is called by the `InvocationService` to inform the InvocationObserver that all service members have either finished the `Invocable` object execution or are not (or no longer) running the InvocationService.

  Specified by:
    `invocationCompleted` in interface `InvocationObserver`

### isDone

    public boolean isDone()

  Determine if an agent has reported that the session was unlocked.

  Returns:
    true if an agent has reported that the session was unlocked

### setDone

    protected void setDone(boolean fDone)

  Toggle the successful completion (session was unlocked) of any one agent.

  Parameters:
    `fDone` - true if an agent reports that the session was unlocked

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.