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


Java ObjectDataInput.readBoolean方法代码示例

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


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

示例1: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
	clientId = in.readUTF();
	ip = in.readUTF();
	port = in.readInt();
	isConnected = in.readBoolean();
	currentMessageId = in.readInt();

	if (in.readBoolean()) {
		will = new Message(in);
	}

	cleanSession = in.readBoolean();
	keepAliveSeconds = in.readInt();

	long rawLong = in.readLong();
	createTime = rawLong != Long.MIN_VALUE ? new Date(rawLong) : null;

	rawLong = in.readLong();
	lastIncomingTime = rawLong != Long.MIN_VALUE ? new Date(rawLong) : null;

	disposeLock = ClusterDataFactory.INSTANCE.createLock("Session_disposeLock_" + clientId);
	messageSender = new MessageSender(this);
}
 
开发者ID:anyflow,项目名称:lannister,代码行数:25,代码来源:Session.java

示例2: read

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public CacheEntry read(ObjectDataInput in)
        throws IOException {

    try {
        int length = in.readInt();
        Serializable[] disassembledState = new Serializable[length];
        for (int i = 0; i < length; i++) {
            disassembledState[i] = in.readObject();
        }
        String subclass = in.readUTF();
        boolean lazyPropertiesAreUnfetched = in.readBoolean();
        Object version = in.readObject();

        return CACHE_ENTRY_CONSTRUCTOR.newInstance(disassembledState, subclass, lazyPropertiesAreUnfetched, version);

    } catch (Exception e) {
        if (e instanceof IOException) {
            throw (IOException) e;
        }
        throw new IOException(e);
    }
}
 
开发者ID:hazelcast,项目名称:hazelcast-hibernate,代码行数:24,代码来源:Hibernate41CacheEntrySerializer.java

示例3: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput objectDataInput) throws IOException {
    this.creationTime = objectDataInput.readLong();
    this.lastAccessedTime = objectDataInput.readLong();
    this.maxInactiveInterval = objectDataInput.readInt();
    this.isNew = objectDataInput.readBoolean();
    this.isValid = objectDataInput.readBoolean();
    this.thisAccessedTime = objectDataInput.readLong();
    this.id = objectDataInput.readObject();

    setAttributes(deserializeMap(objectDataInput, true));

    this.notes = deserializeMap(objectDataInput, false);

    if (this.listeners == null) {
        this.listeners = new ArrayList();
    }
}
 
开发者ID:hazelcast,项目名称:hazelcast-tomcat-sessionmanager,代码行数:19,代码来源:HazelcastSession.java

示例4: read

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public Library read(ObjectDataInput in) throws IOException {
	Object[] entity = super.readEntity(in);
	Library xLibrary = new Library(
			(int) entity[0],
			(Date) entity[1],
			(String) entity[2],
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			in.readBoolean());
	int cnt = in.readInt();
	for (int i=0; i < cnt; i++) {
		Function xf = in.readObject();
		xLibrary.getFunctions().add(xf);
	}
	return xLibrary;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:19,代码来源:LibrarySerializer.java

示例5: read

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public Module read(ObjectDataInput in) throws IOException {
	Object[] entity = super.readEntity(in);
	Module xModule = new Module(
			(int) entity[0],
			(Date) entity[1],
			(String) entity[2],
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			in.readBoolean());
	return xModule;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:17,代码来源:ModuleSerializer.java

示例6: readTrigger

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
public Object[] readTrigger(ObjectDataInput in) throws IOException {
	Object[] entity = super.readEntity(in);
	Object[] trigger = new Object[7];
	trigger[0] = entity[0];
	trigger[1] = entity[1];
	trigger[2] = entity[2];
	trigger[3] = in.readBoolean();
	trigger[4] = in.readBoolean();
	trigger[5] = in.readUTF();
	int size = in.readInt();
	List<TriggerAction> actions = new ArrayList<>(size);
	for (int i=0; i < size; i++) {
		TriggerAction xAction = in.readObject();
		actions.add(xAction);
	}
	trigger[6] = actions;
	return trigger;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:19,代码来源:TriggerDefinitionSerializer.java

示例7: read

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public Index read(ObjectDataInput in) throws IOException {
	Object[] entity = super.readEntity(in);
	Index xIndex = new Index(
			(int) entity[0],
			(Date) entity[1],
			(String) entity[2],
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			in.readUTF(),
			QName.valueOf(in.readUTF()),
			in.readBoolean(),
			in.readBoolean(),
			in.readBoolean(),
			in.readUTF(),
			in.readBoolean());
	return xIndex;
}
 
开发者ID:dsukhoroslov,项目名称:bagri,代码行数:20,代码来源:IndexSerializer.java

示例8: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
    id = in.readUTF();
    bookId = in.readUTF();
    cost = in.readDouble();
    quantity = in.readInt();
    inStock = in.readBoolean();
}
 
开发者ID:ivogm,项目名称:bookstore,代码行数:9,代码来源:BookCartItem.java

示例9: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
	id = in.readInt();
	topicName = in.readUTF();
	publisherId = in.readUTF();
	message = in.readByteArray();

	int rawInt = in.readInt();
	qos = rawInt != Byte.MIN_VALUE ? MqttQoS.valueOf(rawInt) : null;

	isRetain = in.readBoolean();
}
 
开发者ID:anyflow,项目名称:lannister,代码行数:13,代码来源:Message.java

示例10: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
	name = in.readUTF();

	if (in.readBoolean()) {
		retainedMessage = new Message(in);
	}
}
 
开发者ID:anyflow,项目名称:lannister,代码行数:9,代码来源:Topic.java

示例11: read

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public CacheEntry read(final ObjectDataInput in)
        throws IOException {

    try {
        if (in.readBoolean()) {
            return readReference(in);
        }
        return readDisassembled(in);
    } catch (Exception e) {
        throw rethrow(e);
    }
}
 
开发者ID:hazelcast,项目名称:hazelcast-hibernate5,代码行数:14,代码来源:Hibernate51CacheEntrySerializer.java

示例12: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(final ObjectDataInput in) throws IOException {
    super.readData(in);
    concurrent = in.readBoolean();
    markerId = in.readUTF();
    multiplicity = in.readInt();
    timeout = in.readLong();
    expiredTimestamp = in.readLong();
}
 
开发者ID:hazelcast,项目名称:hazelcast-hibernate5,代码行数:10,代码来源:ExpiryMarker.java

示例13: readDisassembled

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
private static CacheEntry readDisassembled(final ObjectDataInput in)
        throws IOException, IllegalAccessException, InvocationTargetException, InstantiationException {

    int length = in.readInt();
    Serializable[] disassembledState = new Serializable[length];
    for (int i = 0; i < length; i++) {
        disassembledState[i] = in.readObject();
    }

    String subclass = in.readUTF();
    boolean lazyPropertiesAreUnfetched = in.readBoolean();
    Object version = in.readObject();

    return CACHE_ENTRY_CONSTRUCTOR.newInstance(disassembledState, subclass, lazyPropertiesAreUnfetched, version);
}
 
开发者ID:hazelcast,项目名称:hazelcast-hibernate5,代码行数:16,代码来源:Hibernate5CacheEntrySerializer.java

示例14: readData

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public void readData(ObjectDataInput in) throws IOException {
    super.readData(in);
    concurrent = in.readBoolean();
    markerId = in.readUTF();
    multiplicity = in.readInt();
    timeout = in.readLong();
    expiredTimestamp = in.readLong();
}
 
开发者ID:hazelcast,项目名称:hazelcast-hibernate,代码行数:10,代码来源:ExpiryMarker.java

示例15: read

import com.hazelcast.nio.ObjectDataInput; //导入方法依赖的package包/类
@Override
public CacheEntry read(ObjectDataInput in)
        throws IOException {

    try {
        if (in.readBoolean()) {
            return readReference(in);
        }
        return readDisassembled(in);
    } catch (Exception e) {
        throw rethrow(e);
    }
}
 
开发者ID:hazelcast,项目名称:hazelcast-hibernate,代码行数:14,代码来源:Hibernate42CacheEntrySerializer.java


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