@Override public String toString() { TransactionRepresentation tr = this.transactionRepresentation; return "Transaction #" + transactionId + (logPosition != null ? " at log position " + logPosition : " (no log position)") + " {started " + date( tr.getTimeStarted() ) + ", committed " + date( tr.getTimeCommitted() ) + ", with " + countCommands() + " commands in this transaction" + ", authored by " + tr.getAuthorId() + ", with master id " + tr.getMasterId() + ", lock session " + tr.getLockSessionId() + ", latest committed transaction id when started was " + tr.getLatestCommittedTxWhenStarted() + ", additional header bytes: " + HexPrinter.hex( tr.additionalHeader(), Integer.MAX_VALUE, "" ) + "}"; }
int txLockSessionId = tx.getLockSessionId();
int txLockSessionId = tx.getLockSessionId();
@Override public String toString() { TransactionRepresentation tr = this.transactionRepresentation; return "Transaction #" + transactionId + (logPosition != null ? " at log position " + logPosition : " (no log position)") + " {started " + date( tr.getTimeStarted() ) + ", committed " + date( tr.getTimeCommitted() ) + ", with " + countCommands() + " commands in this transaction" + ", authored by " + tr.getAuthorId() + ", with master id " + tr.getMasterId() + ", lock session " + tr.getLockSessionId() + ", latest committed transaction id when started was " + tr.getLatestCommittedTxWhenStarted() + ", additional header bytes: " + HexPrinter.hex( tr.additionalHeader(), Integer.MAX_VALUE, "" ) + "}"; }
public static void write( TransactionRepresentation tx, NetworkFlushableChannelNetty4 channel ) throws IOException { channel.putInt( tx.getAuthorId() ); channel.putInt( tx.getMasterId() ); channel.putLong( tx.getLatestCommittedTxWhenStarted() ); channel.putLong( tx.getTimeStarted() ); channel.putLong( tx.getTimeCommitted() ); channel.putInt( tx.getLockSessionId() ); byte[] additionalHeader = tx.additionalHeader(); if ( additionalHeader != null ) { channel.putInt( additionalHeader.length ); channel.put( additionalHeader, additionalHeader.length ); } else { channel.putInt( 0 ); } new LogEntryWriter( channel ).serialize( tx ); } }
public static void write( TransactionRepresentation tx, NetworkFlushableChannelNetty4 channel ) throws IOException { channel.putInt( tx.getAuthorId() ); channel.putInt( tx.getMasterId() ); channel.putLong( tx.getLatestCommittedTxWhenStarted() ); channel.putLong( tx.getTimeStarted() ); channel.putLong( tx.getTimeCommitted() ); channel.putInt( tx.getLockSessionId() ); byte[] additionalHeader = tx.additionalHeader(); if ( additionalHeader != null ) { channel.putInt( additionalHeader.length ); channel.put( additionalHeader, additionalHeader.length ); } else { channel.putInt( 0 ); } new LogEntryWriter( channel ).serialize( tx ); } }