Documentation ¶
Index ¶
- type Cache
- type Cached
- type LocalTxnCompletionContinuation
- type RemoteTransactionSubmitter
- func (rts *RemoteTransactionSubmitter) Aborted(txn *txnreader.TxnReader, tr *TransactionRecord) error
- func (rts *RemoteTransactionSubmitter) Committed(txn *txnreader.TxnReader, tr *TransactionRecord) error
- func (rts *RemoteTransactionSubmitter) SubmitRemoteClientTransaction(txnId *common.TxnId, txn *cmsgs.ClientTxn, ...) error
- func (rts *RemoteTransactionSubmitter) SubscriptionConsumer(sm *SubscriptionManager, txn *txnreader.TxnReader, outcome *msgs.Outcome) error
- func (rts *RemoteTransactionSubmitter) TopologyChanged(topology *configuration.Topology) error
- type RemoteTxnCompletionContinuation
- type SubscriptionConsumer
- type SubscriptionManager
- type TransactionRecord
- type TransactionSubmitter
- func (ts *TransactionSubmitter) AddTransactionRecord(tr *TransactionRecord, force bool)
- func (ts *TransactionSubmitter) ServerConnectionsChanged(servers map[common.RMId]sconn.ServerConnection) error
- func (ts *TransactionSubmitter) Shutdown(onceEmpty func([]*SubscriptionManager))
- func (ts *TransactionSubmitter) Status(sc *status.StatusConsumer)
- func (ts *TransactionSubmitter) SubmissionOutcomeReceived(sender common.RMId, subId *common.TxnId, txn *txnreader.TxnReader, ...) error
- func (ts *TransactionSubmitter) SubmitLocalClientTransaction(txnId *common.TxnId, txn *cmsgs.ClientTxn, isTopologyTxn bool, ...) error
- func (ts *TransactionSubmitter) SubmitLocalServerTransaction(txnId *common.TxnId, txn *msgs.Txn, subscriptionConsumer SubscriptionConsumer, ...)
- func (ts *TransactionSubmitter) TopologyChanged(topology *configuration.Topology) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) SetResolver ¶
func (c *Cache) SetResolver(resolver *consistenthash.Resolver)
type Cached ¶
func (*Cached) CreatePositions ¶
In here, we don't actually add to the cache because we don't know if the corresponding txn is going to commit or not.
func (*Cached) UnionCaps ¶
func (c *Cached) UnionCaps(cap common.Capability)
type LocalTxnCompletionContinuation ¶
func (LocalTxnCompletionContinuation) Aborted ¶
func (cont LocalTxnCompletionContinuation) Aborted(txn *txnreader.TxnReader, tr *TransactionRecord) error
func (LocalTxnCompletionContinuation) Committed ¶
func (cont LocalTxnCompletionContinuation) Committed(txn *txnreader.TxnReader, tr *TransactionRecord) error
type RemoteTransactionSubmitter ¶
type RemoteTransactionSubmitter struct { *TransactionSubmitter // contains filtered or unexported fields }
func NewRemoteTransactionSubmitter ¶
func NewRemoteTransactionSubmitter(namespace []byte, connPub sconn.ServerConnectionPublisher, actor actor.EnqueueActor, rng *rand.Rand, logger log.Logger, roots map[common.VarUUId]*types.PosCapVer, metrics *cconn.ClientTxnMetrics, subCont RemoteTxnCompletionContinuation) *RemoteTransactionSubmitter
func (*RemoteTransactionSubmitter) Aborted ¶
func (rts *RemoteTransactionSubmitter) Aborted(txn *txnreader.TxnReader, tr *TransactionRecord) error
func (*RemoteTransactionSubmitter) Committed ¶
func (rts *RemoteTransactionSubmitter) Committed(txn *txnreader.TxnReader, tr *TransactionRecord) error
func (*RemoteTransactionSubmitter) SubmitRemoteClientTransaction ¶
func (rts *RemoteTransactionSubmitter) SubmitRemoteClientTransaction(txnId *common.TxnId, txn *cmsgs.ClientTxn, cont RemoteTxnCompletionContinuation) error
func (*RemoteTransactionSubmitter) SubscriptionConsumer ¶
func (rts *RemoteTransactionSubmitter) SubscriptionConsumer(sm *SubscriptionManager, txn *txnreader.TxnReader, outcome *msgs.Outcome) error
func (*RemoteTransactionSubmitter) TopologyChanged ¶
func (rts *RemoteTransactionSubmitter) TopologyChanged(topology *configuration.Topology) error
type RemoteTxnCompletionContinuation ¶
type SubscriptionConsumer ¶
type SubscriptionManager ¶
type SubscriptionManager struct { *TransactionRecord // contains filtered or unexported fields }
func NewSubscriptionManager ¶
func NewSubscriptionManager(subId *common.TxnId, tr *TransactionRecord, consumer SubscriptionConsumer) *SubscriptionManager
func (*SubscriptionManager) Deleted ¶
func (sm *SubscriptionManager) Deleted(vUUId *common.VarUUId)
func (*SubscriptionManager) SubmissionOutcomeReceived ¶
func (*SubscriptionManager) Unsubscribe ¶
func (sm *SubscriptionManager) Unsubscribe(lc localconnection.LocalConnection) error
NB due to access to the cache, this is not safe to run concurrently with other SMs off the same TxnSubmitter.
type TransactionRecord ¶
type TransactionRecord struct { *TransactionSubmitter Id *common.TxnId // contains filtered or unexported fields }
func (*TransactionRecord) SubmissionOutcomeReceived ¶
func (*TransactionRecord) Submit ¶
func (tr *TransactionRecord) Submit()
func (*TransactionRecord) TopologyChanged ¶
func (tr *TransactionRecord) TopologyChanged(topology *configuration.Topology)
type TransactionSubmitter ¶
type TransactionSubmitter struct {
// contains filtered or unexported fields
}
func NewTransactionSubmitter ¶
func NewTransactionSubmitter(connPub sconn.ServerConnectionPublisher, actor actor.EnqueueActor, rng *rand.Rand, logger log.Logger) *TransactionSubmitter
func (*TransactionSubmitter) AddTransactionRecord ¶
func (ts *TransactionSubmitter) AddTransactionRecord(tr *TransactionRecord, force bool)
func (*TransactionSubmitter) ServerConnectionsChanged ¶
func (ts *TransactionSubmitter) ServerConnectionsChanged(servers map[common.RMId]sconn.ServerConnection) error
func (*TransactionSubmitter) Shutdown ¶
func (ts *TransactionSubmitter) Shutdown(onceEmpty func([]*SubscriptionManager))
func (*TransactionSubmitter) Status ¶
func (ts *TransactionSubmitter) Status(sc *status.StatusConsumer)
func (*TransactionSubmitter) SubmissionOutcomeReceived ¶
func (*TransactionSubmitter) SubmitLocalClientTransaction ¶
func (ts *TransactionSubmitter) SubmitLocalClientTransaction(txnId *common.TxnId, txn *cmsgs.ClientTxn, isTopologyTxn bool, roots map[common.VarUUId]*types.PosCapVer, translationCallback loco.TranslationCallback, cont LocalTxnCompletionContinuation) error
func (*TransactionSubmitter) SubmitLocalServerTransaction ¶
func (ts *TransactionSubmitter) SubmitLocalServerTransaction(txnId *common.TxnId, txn *msgs.Txn, subscriptionConsumer SubscriptionConsumer, active common.RMIds, bbe *binarybackoff.BinaryBackoffEngine, cont LocalTxnCompletionContinuation)
func (*TransactionSubmitter) TopologyChanged ¶
func (ts *TransactionSubmitter) TopologyChanged(topology *configuration.Topology) error
Click to show internal directories.
Click to hide internal directories.