congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ConnectionInfoMarshaller.tightUnmarsalCachedObject
Code IndexAdd Tabnine to your IDE (free)

How to use
tightUnmarsalCachedObject
method
in
org.apache.activemq.openwire.v4.ConnectionInfoMarshaller

Best Java code snippets using org.apache.activemq.openwire.v4.ConnectionInfoMarshaller.tightUnmarsalCachedObject (Showing top 4 results out of 315)

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);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
  info.setClientId(tightUnmarshalString(dataIn, bs));
  info.setPassword(tightUnmarshalString(dataIn, bs));
  info.setUserName(tightUnmarshalString(dataIn, bs));
  if (bs.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for( int i=0; i < size; i++ ) {
      value[i] = (org.apache.activemq.command.BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
    }
    info.setBrokerPath(value);
  }
  else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(bs.readBoolean());
  info.setManageable(bs.readBoolean());
  info.setClientMaster(bs.readBoolean());
}
origin: pierre/meteo

/**
 * 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);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
  info.setClientId(tightUnmarshalString(dataIn, bs));
  info.setPassword(tightUnmarshalString(dataIn, bs));
  info.setUserName(tightUnmarshalString(dataIn, bs));
  if (bs.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for( int i=0; i < size; i++ ) {
      value[i] = (org.apache.activemq.command.BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
    }
    info.setBrokerPath(value);
  }
  else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(bs.readBoolean());
  info.setManageable(bs.readBoolean());
  info.setClientMaster(bs.readBoolean());
}
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);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
  info.setClientId(tightUnmarshalString(dataIn, bs));
  info.setPassword(tightUnmarshalString(dataIn, bs));
  info.setUserName(tightUnmarshalString(dataIn, bs));
  if (bs.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for( int i=0; i < size; i++ ) {
      value[i] = (org.apache.activemq.command.BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
    }
    info.setBrokerPath(value);
  }
  else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(bs.readBoolean());
  info.setManageable(bs.readBoolean());
  info.setClientMaster(bs.readBoolean());
}
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);
  ConnectionInfo info = (ConnectionInfo)o;
  info.setConnectionId((org.apache.activemq.command.ConnectionId) tightUnmarsalCachedObject(wireFormat, dataIn, bs));
  info.setClientId(tightUnmarshalString(dataIn, bs));
  info.setPassword(tightUnmarshalString(dataIn, bs));
  info.setUserName(tightUnmarshalString(dataIn, bs));
  if (bs.readBoolean()) {
    short size = dataIn.readShort();
    org.apache.activemq.command.BrokerId value[] = new org.apache.activemq.command.BrokerId[size];
    for( int i=0; i < size; i++ ) {
      value[i] = (org.apache.activemq.command.BrokerId) tightUnmarsalNestedObject(wireFormat,dataIn, bs);
    }
    info.setBrokerPath(value);
  }
  else {
    info.setBrokerPath(null);
  }
  info.setBrokerMasterConnector(bs.readBoolean());
  info.setManageable(bs.readBoolean());
  info.setClientMaster(bs.readBoolean());
}
org.apache.activemq.openwire.v4ConnectionInfoMarshallertightUnmarsalCachedObject

Popular methods of ConnectionInfoMarshaller

  • looseMarshalCachedObject
  • looseMarshalObjectArray
  • looseMarshalString
  • looseUnmarsalCachedObject
  • looseUnmarsalNestedObject
  • looseUnmarshalString
  • tightMarshalCachedObject1
  • tightMarshalCachedObject2
  • tightMarshalObjectArray1
  • tightMarshalObjectArray2
  • tightMarshalString1
  • tightMarshalString2
  • tightMarshalString1,
  • tightMarshalString2,
  • tightUnmarsalNestedObject,
  • tightUnmarshalString

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • BoxLayout (javax.swing)
  • JButton (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now