Module com.s8.api

Class AccessSpaceS8Request

java.lang.Object
com.s8.api.flow.space.requests.AccessSpaceS8Request

public abstract class AccessSpaceS8Request extends Object
A Request Object to access a space.
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Field Details

    • spaceId

      public final String spaceId
      The identifier of the space targeted by this request.
    • writeChangesImmediatelyAfter

      public final boolean writeChangesImmediatelyAfter
      True if immediate Disk writing is required
  • Constructor Details

    • AccessSpaceS8Request

      public AccessSpaceS8Request(String spaceId, boolean writeChangesImmediatelyAfter)
      Main constructor
      Parameters:
      spaceId - the identifier of the space
      writeChangesImmediatelyAfter - true if changes needs to be copied to hard drive immediately
  • Method Details

    • onAccessed

      public abstract void onAccessed(AccessSpaceS8Request.Status status, Object[] objects)
      Callback method upon successful completion of the request (check status to see if the request succeed).
      Parameters:
      status - the status upon successful access
      objects - the objects accessed wthat have been reached.
    • onFailed

      public abstract void onFailed(Exception exception)
      Callback method upon failed execution of the request.
      Parameters:
      exception - the exception raiseed upon accessing the space.