public abstract class StatefulRepository extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StatefulRepository.ReadInterest |
static class |
StatefulRepository.WriteInterest |
| Modifier | Constructor and Description |
|---|---|
protected |
StatefulRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
await(StatefulRepository.ReadInterest interest)
Answer the T afer awaiting the read to be completed.
|
protected void |
await(StatefulRepository.WriteInterest interest)
Await on the write to be completed.
|
protected StatefulRepository.ReadInterest |
readInterest()
Answer a
StatefulRepository.ReadInterest for each new read(). |
protected StatefulRepository.WriteInterest |
writeInterest()
Answer a
StatefulRepository.WriteInterest for each new write(). |
protected <T> T await(StatefulRepository.ReadInterest interest)
interest
must be requested upon each new read().T - the type of object to answerinterest - the ReadInterest on which the await is basedprotected void await(StatefulRepository.WriteInterest interest)
interest must be
requested upon each new write().interest - the WriteInterest on which the await is basedprotected StatefulRepository.ReadInterest readInterest()
StatefulRepository.ReadInterest for each new read().protected StatefulRepository.WriteInterest writeInterest()
StatefulRepository.WriteInterest for each new write().Copyright © 2020. All rights reserved.