All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.port_messaging.1.4.3.source-code.Message.kt Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
package com.hexagonkt.messaging

import java.lang.System.currentTimeMillis
import java.lang.Thread.currentThread
import java.time.LocalDateTime

import com.hexagonkt.helpers.toNumber
import com.hexagonkt.helpers.Jvm

open class Message (
    val timestamp: Long = currentTimeMillis(),
    val dateTime: Long = LocalDateTime.now().toNumber(),
    val hostname: String = Jvm.hostname,
    val ip: String = Jvm.ip,
    val jvmId: String = Jvm.id,
    val thread: String = currentThread().name
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy