Example usage for java.io ObjectOutputStream writeLong

List of usage examples for java.io ObjectOutputStream writeLong

Introduction

In this page you can find the example usage for java.io ObjectOutputStream writeLong.

Prototype

public void writeLong(long val) throws IOException 

Source Link

Document

Writes a 64 bit long.

Usage

From source file:pt.webdetails.cda.cache.monitor.ExtraCacheInfo.java

private void writeObject(ObjectOutputStream out) throws IOException {
    out.writeObject(cdaSettingsId);//  ww  w .  j a  v  a2  s.com
    out.writeObject(dataAccessId);
    out.writeLong(queryDurationMs);
    out.writeInt(nbrRows);
    out.writeLong(entryTime);
    out.writeInt(timeToLive);
    out.writeObject(tableSnapshot != null ? tableSnapshot.toString() : null);
}