Codota Logo
TransactionIdMarshaller
Code IndexAdd Codota to your IDE (free)

How to use
TransactionIdMarshaller
in
org.apache.activemq.openwire.v2

Best Java code snippets using org.apache.activemq.openwire.v2.TransactionIdMarshaller (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    XATransactionId info = (XATransactionId)o;

    super.looseMarshal(wireFormat, o, dataOut);
    dataOut.writeInt(info.getFormatId());
    looseMarshalByteArray(wireFormat, info.getGlobalTransactionId(), dataOut);
    looseMarshalByteArray(wireFormat, info.getBranchQualifier(), dataOut);

  }
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  XATransactionId info = (XATransactionId)o;
  info.setFormatId(dataIn.readInt());
  info.setGlobalTransactionId(looseUnmarshalByteArray(dataIn));
  info.setBranchQualifier(looseUnmarshalByteArray(dataIn));
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  LocalTransactionId info = (LocalTransactionId)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalLong1(wireFormat, info.getValue(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getConnectionId(), bs);
  return rc + 0;
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
  super.tightUnmarshal(wireFormat, o, dataIn, bs);
  XATransactionId info = (XATransactionId)o;
  info.setFormatId(dataIn.readInt());
  info.setGlobalTransactionId(tightUnmarshalByteArray(dataIn, bs));
  info.setBranchQualifier(tightUnmarshalByteArray(dataIn, bs));
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  XATransactionId info = (XATransactionId)o;
  dataOut.writeInt(info.getFormatId());
  tightMarshalByteArray2(info.getGlobalTransactionId(), dataOut, bs);
  tightMarshalByteArray2(info.getBranchQualifier(), dataOut, bs);
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
  super.tightUnmarshal(wireFormat, o, dataIn, bs);
  LocalTransactionId info = (LocalTransactionId)o;
  info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
  info.setConnectionId((org.apache.activemq.command.ConnectionId)tightUnmarsalCachedObject(wireFormat, dataIn, bs));
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 * 
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  LocalTransactionId info = (LocalTransactionId)o;
  tightMarshalLong2(wireFormat, info.getValue(), dataOut, bs);
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getConnectionId(), dataOut, bs);
}
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  XATransactionId info = (XATransactionId)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalByteArray1(info.getGlobalTransactionId(), bs);
  rc += tightMarshalByteArray1(info.getBranchQualifier(), bs);
  return rc + 4;
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    LocalTransactionId info = (LocalTransactionId)o;

    super.looseMarshal(wireFormat, o, dataOut);
    looseMarshalLong(wireFormat, info.getValue(), dataOut);
    looseMarshalCachedObject(wireFormat, (DataStructure)info.getConnectionId(), dataOut);

  }
}
origin: org.apache.activemq/activemq-all

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
  super.tightUnmarshal(wireFormat, o, dataIn, bs);
  XATransactionId info = (XATransactionId)o;
  info.setFormatId(dataIn.readInt());
  info.setGlobalTransactionId(tightUnmarshalByteArray(dataIn, bs));
  info.setBranchQualifier(tightUnmarshalByteArray(dataIn, bs));
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  LocalTransactionId info = (LocalTransactionId)o;
  info.setValue(looseUnmarshalLong(wireFormat, dataIn));
  info.setConnectionId((org.apache.activemq.command.ConnectionId)looseUnmarsalCachedObject(wireFormat, dataIn));
}
origin: org.apache.activemq/activemq-all

/**
 * Write a object instance to data output stream
 * 
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  LocalTransactionId info = (LocalTransactionId)o;
  tightMarshalLong2(wireFormat, info.getValue(), dataOut, bs);
  tightMarshalCachedObject2(wireFormat, (DataStructure)info.getConnectionId(), dataOut, bs);
}
origin: org.apache.activemq/activemq-all

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  XATransactionId info = (XATransactionId)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalByteArray1(info.getGlobalTransactionId(), bs);
  rc += tightMarshalByteArray1(info.getBranchQualifier(), bs);
  return rc + 4;
}
origin: pierre/meteo

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    XATransactionId info = (XATransactionId)o;

    super.looseMarshal(wireFormat, o, dataOut);
    dataOut.writeInt(info.getFormatId());
    looseMarshalByteArray(wireFormat, info.getGlobalTransactionId(), dataOut);
    looseMarshalByteArray(wireFormat, info.getBranchQualifier(), dataOut);

  }
}
origin: org.apache.activemq/activemq-all

/**
 * Un-marshal an object instance from the data input stream
 * 
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
  super.tightUnmarshal(wireFormat, o, dataIn, bs);
  LocalTransactionId info = (LocalTransactionId)o;
  info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
  info.setConnectionId((org.apache.activemq.command.ConnectionId)tightUnmarsalCachedObject(wireFormat, dataIn, bs));
}
origin: org.apache.activemq/activemq-all

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  XATransactionId info = (XATransactionId)o;
  info.setFormatId(dataIn.readInt());
  info.setGlobalTransactionId(looseUnmarshalByteArray(dataIn));
  info.setBranchQualifier(looseUnmarshalByteArray(dataIn));
}
origin: org.apache.activemq/activemq-all

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  XATransactionId info = (XATransactionId)o;
  dataOut.writeInt(info.getFormatId());
  tightMarshalByteArray2(info.getGlobalTransactionId(), dataOut, bs);
  tightMarshalByteArray2(info.getBranchQualifier(), dataOut, bs);
}
origin: org.apache.activemq/activemq-osgi

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  LocalTransactionId info = (LocalTransactionId)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalLong1(wireFormat, info.getValue(), bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getConnectionId(), bs);
  return rc + 0;
}
origin: org.apache.activemq/activemq-all

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    XATransactionId info = (XATransactionId)o;

    super.looseMarshal(wireFormat, o, dataOut);
    dataOut.writeInt(info.getFormatId());
    looseMarshalByteArray(wireFormat, info.getGlobalTransactionId(), dataOut);
    looseMarshalByteArray(wireFormat, info.getBranchQualifier(), dataOut);

  }
}
origin: org.apache.activemq/activemq-osgi

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void tightUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
  super.tightUnmarshal(wireFormat, o, dataIn, bs);
  XATransactionId info = (XATransactionId)o;
  info.setFormatId(dataIn.readInt());
  info.setGlobalTransactionId(tightUnmarshalByteArray(dataIn, bs));
  info.setBranchQualifier(tightUnmarshalByteArray(dataIn, bs));
}
org.apache.activemq.openwire.v2TransactionIdMarshaller

Javadoc

Marshalling code for Open Wire Format for TransactionIdMarshaller NOTE!: This file is auto generated - do not modify! if you need to make a change, please see the modify the groovy scripts in the under src/gram/script and then use maven openwire:generate to regenerate this file.

Most used methods

  • looseMarshal
    Write the booleans that this object uses to a BooleanStream
  • looseUnmarshal
    Un-marshal an object instance from the data input stream
  • tightMarshal1
    Write the booleans that this object uses to a BooleanStream
  • tightMarshal2
    Write a object instance to data output stream
  • tightUnmarshal
    Un-marshal an object instance from the data input stream

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now