当前位置: 首页>>代码示例>>Java>>正文


Java SessionId.setConnectionId方法代码示例

本文整理汇总了Java中org.apache.activemq.command.SessionId.setConnectionId方法的典型用法代码示例。如果您正苦于以下问题:Java SessionId.setConnectionId方法的具体用法?Java SessionId.setConnectionId怎么用?Java SessionId.setConnectionId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.activemq.command.SessionId的用法示例。


在下文中一共展示了SessionId.setConnectionId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: tightUnmarshal

import org.apache.activemq.command.SessionId; //导入方法依赖的package包/类
/**
 * 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);

    SessionId info = (SessionId)o;
    info.setConnectionId(tightUnmarshalString(dataIn, bs));
    info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));

}
 
开发者ID:DiamondLightSource,项目名称:daq-eclipse,代码行数:17,代码来源:SessionIdMarshaller.java

示例2: looseUnmarshal

import org.apache.activemq.command.SessionId; //导入方法依赖的package包/类
/**
 * 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);

    SessionId info = (SessionId)o;
    info.setConnectionId(looseUnmarshalString(dataIn));
    info.setValue(looseUnmarshalLong(wireFormat, dataIn));

}
 
开发者ID:DiamondLightSource,项目名称:daq-eclipse,代码行数:16,代码来源:SessionIdMarshaller.java

示例3: populateObject

import org.apache.activemq.command.SessionId; //导入方法依赖的package包/类
@Override
protected void populateObject(Object object) throws Exception {
   super.populateObject(object);
   SessionId info = (SessionId) object;

   info.setConnectionId("ConnectionId:1");
   info.setValue(1);
}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionIdTest.java

示例4: populateObject

import org.apache.activemq.command.SessionId; //导入方法依赖的package包/类
@Override
protected void populateObject(Object object) throws Exception {
   super.populateObject(object);
   SessionId info = (SessionId) object;
   info.setConnectionId("ConnectionId:1");
   info.setValue(1);

}
 
开发者ID:apache,项目名称:activemq-artemis,代码行数:9,代码来源:SessionIdTest.java


注:本文中的org.apache.activemq.command.SessionId.setConnectionId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。