public class TransactionManager extends java.lang.Object implements Transactions
Klasse, die Transaktionen verwaltet.
Constructor and Description |
---|
TransactionManager(ClientDavConnection connection)
Erstellt einen neuen TransaktionsManager zur Verwaltung von Transaktionen
|
Modifier and Type | Method and Description |
---|---|
void |
sendTransaction(TransactionDataDescription dataDescription,
java.util.Collection<ResultData> data)
Sendet eine Transaktion mit dem Transaktiondatensatz-Zeitstempel der aktuellen Zeit.
|
void |
sendTransaction(TransactionDataDescription dataDescription,
java.util.Collection<ResultData> data,
long dataTime)
Sendet eine Transaktion
|
void |
sendTransaction(TransactionResultData data)
Sendet eine Transaktion
|
void |
subscribeDrain(TransactionReceiverInterface receiver,
TransactionDataDescription dataDescription,
java.util.Collection<InnerDataSubscription> subscriptions)
Meldet eine Transaktionssenke an.
|
void |
subscribeReceiver(TransactionReceiverInterface receiver,
TransactionDataDescription dataDescription)
Meldet einen Transaktionsempfänger an.
|
void |
subscribeSender(TransactionSenderInterface sender,
TransactionDataDescription dataDescription)
Meldet einen Transaktionssender an.
|
void |
subscribeSource(TransactionSenderInterface sender,
TransactionDataDescription dataDescription,
java.util.Collection<InnerDataSubscription> subscriptions)
Meldet eine Transaktionsquelle an und sendet einen leeren Datensatz.
|
void |
subscribeSource(TransactionSenderInterface sender,
TransactionDataDescription dataDescription,
java.util.Collection<InnerDataSubscription> subscriptions,
java.util.Collection<ResultData> initialData,
long time)
Meldet eine Transaktionsquelle an und sendet einen Transaktionsdatensatz.
|
java.lang.String |
toString() |
void |
unsubscribeReceiver(TransactionReceiverInterface receiver,
TransactionDataDescription dataDescription)
Meldet einen Transaktionempfänger oder eine Transaktionssenke ab.
|
void |
unsubscribeSender(TransactionSenderInterface sender,
TransactionDataDescription dataDescription)
Meldet einen Transaktionsender oder eine Transaktionsquelle ab.
|
public TransactionManager(ClientDavConnection connection)
Erstellt einen neuen TransaktionsManager zur Verwaltung von Transaktionen
connection
- Verbindung zum Datenverteilerpublic void subscribeSource(TransactionSenderInterface sender, TransactionDataDescription dataDescription, java.util.Collection<InnerDataSubscription> subscriptions, java.util.Collection<ResultData> initialData, long time) throws OneSubscriptionPerSendData
Transactions
Meldet eine Transaktionsquelle an und sendet einen Transaktionsdatensatz.
subscribeSource
in interface Transactions
sender
- Callback zur SendesteuerungdataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)subscriptions
- Datenidentifikationen innerhalb der TransaktioninitialData
- Initialer Datensatztime
- Datenzeit des TransaktionsdatensatzesOneSubscriptionPerSendData
- Falls es schon eine Quellen-Anmeldung zu dieser Transaktion oder einem enthaltenen Datensatz gibt.public void sendTransaction(TransactionDataDescription dataDescription, java.util.Collection<ResultData> data) throws SendSubscriptionNotConfirmed
Transactions
Sendet eine Transaktion mit dem Transaktiondatensatz-Zeitstempel der aktuellen Zeit. Innere Daten können einen anderen Zeitstempel haben.
sendTransaction
in interface Transactions
dataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)data
- Liste mit DatenSendSubscriptionNotConfirmed
- Bei fehlender Sender-Anmeldungpublic void sendTransaction(TransactionDataDescription dataDescription, java.util.Collection<ResultData> data, long dataTime) throws SendSubscriptionNotConfirmed
Transactions
Sendet eine Transaktion
sendTransaction
in interface Transactions
dataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)data
- Liste mit DatendataTime
- Datenzeit (des Transaktionsdatensatzes)SendSubscriptionNotConfirmed
- Bei fehlender Sender-Anmeldungpublic void sendTransaction(TransactionResultData data) throws SendSubscriptionNotConfirmed
Transactions
Sendet eine Transaktion
sendTransaction
in interface Transactions
data
- TransaktionSendSubscriptionNotConfirmed
- Bei fehlender Sender-Anmeldungpublic void unsubscribeReceiver(TransactionReceiverInterface receiver, TransactionDataDescription dataDescription)
Transactions
Meldet einen Transaktionempfänger oder eine Transaktionssenke ab.
unsubscribeReceiver
in interface Transactions
receiver
- Empfänger-KlassedataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)public void unsubscribeSender(TransactionSenderInterface sender, TransactionDataDescription dataDescription)
Transactions
Meldet einen Transaktionsender oder eine Transaktionsquelle ab.
unsubscribeSender
in interface Transactions
sender
- Sender-KlassedataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)public void subscribeSource(TransactionSenderInterface sender, TransactionDataDescription dataDescription, java.util.Collection<InnerDataSubscription> subscriptions) throws OneSubscriptionPerSendData
Transactions
Meldet eine Transaktionsquelle an und sendet einen leeren Datensatz.
subscribeSource
in interface Transactions
sender
- Callback zur SendesteuerungdataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)subscriptions
- Datenidentifikationen innerhalb der TransaktionOneSubscriptionPerSendData
- Falls es schon eine Quellen-Anmeldung zu dieser Transaktion oder einem enthaltenen Datensatz gibt.public void subscribeSender(TransactionSenderInterface sender, TransactionDataDescription dataDescription) throws OneSubscriptionPerSendData
Transactions
Meldet einen Transaktionssender an.
subscribeSender
in interface Transactions
sender
- Callback zur SendesteuerungdataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)OneSubscriptionPerSendData
- Falls es schon eine widersprüchliche Anmeldung zu dieser Transaktion oder einem enthaltenen Datensatz gibt.public void subscribeReceiver(TransactionReceiverInterface receiver, TransactionDataDescription dataDescription) throws OneSubscriptionPerSendData
Transactions
Meldet einen Transaktionsempfänger an.
subscribeReceiver
in interface Transactions
receiver
- Callback zum Empfang von DatendataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)OneSubscriptionPerSendData
- Falls es schon eine widersprüchliche Anmeldung zu dieser Transaktion oder einem enthaltenen Datensatz gibt.public void subscribeDrain(TransactionReceiverInterface receiver, TransactionDataDescription dataDescription, java.util.Collection<InnerDataSubscription> subscriptions) throws OneSubscriptionPerSendData
Transactions
Meldet eine Transaktionssenke an.
subscribeDrain
in interface Transactions
receiver
- Callback zum Empfang von DatendataDescription
- Datenidentifikation der Transaktion (Transaktionsobjekt, -attributgruppe, -aspekt)subscriptions
- Datenidentifikationen innerhalb der TransaktionOneSubscriptionPerSendData
- Falls es schon eine widersprüchliche Anmeldung zu dieser Transaktion oder einem enthaltenen Datensatz gibt.public java.lang.String toString()
toString
in class java.lang.Object