本文整理汇总了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);
}
示例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);
}
}
示例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();
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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();
}
示例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);
}
}
示例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);
}
}
示例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();
}
示例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);
}
示例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();
}
示例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);
}
}