public interface S8AsyncFlow
The main orchestratino flow of the S8 Stack.
- Author:
- Pierre Convert Copyright (c) 2025, Pierre Convert. All rights reserved.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longCREATE_SPACE_IF_NOT_PRESENTstatic final longTAG for HEAD version of a repository statsstatic final longSAVE_IMMEDIATELY_AFTERstatic final longSHOULD_NOT_OVERRIDE -
Method Summary
Modifier and TypeMethodDescriptionvoidaccessSpace(AccessSpaceS8Request request) Access a space.voidcloneBranch(CloneBranchS8Request request) Clone the branch of a repositoryvoidcommitBranch(CommitBranchS8Request request) Commit a branch to a repositoryvoidCreate a new repository.voidcreateSpace(CreateSpaceS8Request request) Create a space.voidcreateTable(CreateTableS8Request request) Create a table.voiddeliver(int load, S8WebResourceGenerator generator) Deliver a generated resourcevoidexposeSpace(ExposeSpaceS8Request request) Expose a space.voidforkBranch(ForkBranchS8Request request) Fork the branch of a repositoryvoidforkRepository(ForkRepositoryS8Request request) Fork an entire repositoryvoidgetBranch(GetBranchMetadataS8Request request) Get branchgetMe()Return the flow onwer.default StringGet my space id as a user.voidGet a repository metadatavoidgetRow(GetRowS8Request request) Get a row from a table.voidplay()Run the flowvoidputRow(PutRowS8Request request) Put a row in a table.voidrunBlock(int force, S8CodeBlock runnable) Run a block of code.<T extends RowS8Object>
voidselectRows(SelectRowsS8Request<T> request) Select many rows in a table.voidsend()Send and playvoidsendEMail(SendMailS8Request request) Send an email.voidDefine a user a flow owner.
-
Field Details
-
CREATE_SPACE_IF_NOT_PRESENT
static final long CREATE_SPACE_IF_NOT_PRESENTCREATE_SPACE_IF_NOT_PRESENT- See Also:
-
SAVE_IMMEDIATELY_AFTER
static final long SAVE_IMMEDIATELY_AFTERSAVE_IMMEDIATELY_AFTER- See Also:
-
SHOULD_NOT_OVERRIDE
static final long SHOULD_NOT_OVERRIDESHOULD_NOT_OVERRIDE- See Also:
-
HEAD_VERSION
static final long HEAD_VERSIONTAG for HEAD version of a repository stats- See Also:
-
-
Method Details
-
getMe
S8User getMe()Return the flow onwer.- Returns:
- the user
-
setMe
Define a user a flow owner.- Parameters:
user- the user.
-
getMySpaceId
Get my space id as a user.- Returns:
- the user main space id.
-
runBlock
Run a block of code.- Parameters:
force- indicator of the amount of resource to be mobilizedrunnable- the code block to be run
-
sendEMail
Send an email.- Parameters:
request- The request Object
-
createTable
Create a table.- Parameters:
request- The request Object
-
getRow
Get a row from a table.- Parameters:
request- The request object
-
putRow
Put a row in a table.- Parameters:
request- the request object
-
selectRows
Select many rows in a table.- Type Parameters:
T- Row type- Parameters:
request- the request object
-
createSpace
Create a space.- Parameters:
request- the request object
-
exposeSpace
Expose a space.- Parameters:
request- the request object
-
accessSpace
Access a space.- Parameters:
request- the request object
-
createRepository
Create a new repository. Note that: - initiator will become owner of the repository - initiator will become owner of the main branch- Parameters:
request- the request object
-
getRepository
Get a repository metadata- Parameters:
request- the request object
-
getBranch
Get branch- Parameters:
request- the request object
-
forkRepository
Fork an entire repository- Parameters:
request- the request object
-
forkBranch
Fork the branch of a repository- Parameters:
request- the request object
-
commitBranch
Commit a branch to a repository- Parameters:
request- the request object
-
cloneBranch
Clone the branch of a repository- Parameters:
request- the request object
-
send
void send()Send and play -
play
void play()Run the flow -
deliver
Deliver a generated resource- Parameters:
load- the load indicatorgenerator- the resource generator
-